Motion Library ‹ Free tools

All / Parallax

Layered depth card

An illustrated card whose layers slide by different amounts as the cursor moves across it, with a gentle tilt.

CSSJavaScriptIntermediate
Live demo Open full screen

Good for

Feature cards, game and character cards and portfolio covers.

Watch out for

Drive every layer from two CSS variables (mouse x and y) and give each layer its own depth multiplier. Overflow hidden keeps the moving layers inside the card.

Accessibility

Wrap motion in @media (prefers-reduced-motion: reduce) and switch it off or shorten it for people who ask for less movement.