how to add margin in 3d space? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to add margin in 3d space?

I'm currently making a 2x2x2 Rubik's cube using HTML, CSS3 and JavaScript. I want to know if there is an efficient way of adding distance dynamically between the 8 cubies other than manually changing their fixed position in css.

28th Nov 2017, 2:04 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
1 Answer