Skip to content

Movement & Transforms

Translate

Move an element along the X or Y axis.

32px
translateX32px

Slide translateX to shift the box without affecting surrounding layout flow.

Scale

Make an element bigger or smaller.

1.15×
scale1.15×

Scale grows or shrinks the element cleanly on the GPU.

Rotate

Spin an element around a point.

45°
rotate45°

Rotate spins the element smoothly around its transform origin.

Skew

Slant an element along the X or Y axis, shearing it out of its rectangular shape.

14°
skewX14°

Skew slants the rectangle along the horizontal axis.

3D tilt / Flip

Rotate in 3D space (rotateX / rotateY) to add depth.

FrontBack

Flip the card in 3D space using rotateY and backface-visibility.

Perspective

How strong the 3D effect looks — a lower value exaggerates depth, like the viewer is closer.

220px
perspective220px

Lower perspective exaggerates 3D depth; higher perspective flattens it.

Transform origin

The anchor point a scale or rotation grows or spins from.

Origin-aware animation

An element animates out of its trigger, like a popover growing from the button that opened it instead of from its own center which is the default in CSS.