Motion Library ‹ Free tools

All / Parallax

Mouse parallax

Layers shift against the cursor by different amounts, with smooth easing, so the scene feels like it has real depth.

CSSJavaScriptIntermediate
Live demo Open full screen

Good for

Hero scenes and landing screens on desktop. Pair it with tilt on phones.

Watch out for

Ease toward the target in requestAnimationFrame instead of snapping. Keep the maximum shift small (10 to 40px) and skip it for reduced motion.

Accessibility

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