Motion Library ‹ Free tools

All / Parallax

GSAP ScrollTrigger parallax

The industry-standard way: ScrollTrigger scrubs a tween across the scroll range, so images drift and headings move with perfect smoothing.

JavaScriptGSAPIntermediate
Live demo Open full screen

Uses: https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js, https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js

Good for

Production sites already using GSAP, or any time you need pinning, scrubbing and callbacks to work together.

Watch out for

Register the plugin before use, and set ease: none on scrubbed tweens so motion matches the scroll one to one. The page still works if the CDN fails, so guard for window.gsap.

Accessibility

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