Perspective

Also called CSS perspective

A CSS property that sets how far the viewer sits from a 3D scene, so rotated elements look deep up close and flatter from far away.

What is Perspective?

Without perspective, rotateY(50deg) just squeezes an element horizontally and it looks flat. perspective: 800px on the parent places a virtual viewer 800px from the screen: the edge that turns toward you grows and the far edge shrinks. Smaller values put the viewer closer and exaggerate the depth; larger values make it subtler.

There are two ways to add it. The perspective property on a parent gives all of its children one shared vanishing point, so a row of tilted cards looks like one scene. The perspective() function inside an element's own transform gives just that element its own, and it must come before the rotation in the list. perspective-origin moves the vanishing point.

Values between 600 and 1200px feel natural for cards and flips; 200 to 400px looks dramatic and distorted. If a 3D rotation looks flat, a missing perspective is usually the reason.

All terms

3D flip

A card that turns over in 3D to reveal a second face on its back, built with `rotateY` and `backface-visibility: hidden`.

3D tilt card

A card that tips in 3D as the mouse moves over it, often with a moving glare, so it feels like a physical object in your hand.

Rotate

A CSS transform that turns an element around its transform origin by an angle, such as `rotate(45deg)`.

Parallax scrolling

A scroll effect where background layers move slower than the foreground, which creates a sense of depth as the page scrolls.