Motion Library ‹ Free tools

All / Parallax

Fixed background parallax

The oldest trick: background-attachment fixed pins the image to the viewport while the section scrolls over it. One line of CSS.

CSSBeginner
Live demo Open full screen

Good for

Quick image bands between content sections when you want depth with zero JavaScript.

Watch out for

iOS Safari ignores background-attachment fixed, and it can repaint slowly on big images. Treat it as a bonus, never as essential.

Accessibility

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