3D Transforms
CSS 3D transforms add depth to web interfaces by allowing elements to rotate and move along the Z-axis. The browser simulates a 3D space using perspective projection.
perspective
Applied to the parent container with perspective: Xpx. Lower values create more dramatic foreshortening. Alternatively, use the perspective() function directly in the child's transform.
transform-style: preserve-3d
Set on a parent so that child elements are positioned in the same 3D space, enabling the card-flip effect.
3D Functions
rotateX(), rotateY(), rotateZ(), translateZ(), rotate3d(x, y, z, angle)