I’ve created a 3D cube using 3d transforms and I’m trying to rotate the cube around its center axis.
Basically like the example in this codepen: https://codepen.io/desandro/pen/KRWjzm
In my current design this is what happens:
When I rotate the cube around the Y-axis, everything goes fine:
However, on the X-axis, it appears the the cube’s anchor point is at the top.
Any help or tips are highly appreciated. Thanks in advance