Using rotateX() for 3D CSS transforms that hold up
The rotateX() CSS function adds real 3D depth, but only when the parent has a perspective value. This covers the syntax, the perspective gotcha that flattens your rotation, and examples like 3D flip cards and unfolding accordions.