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: