Scroll animation has matured. With GSAP ScrollTrigger, Lenis smooth scrolling and a bit of WebGL, you can build experiences that feel native — if you keep a strict performance budget.
1. Treat scroll as a timeline
Instead of attaching listeners everywhere, build one GSAP timeline and bind it to the scroll position with scrub. The browser composites transforms and opacity on the GPU, so the page stays smooth.
gsap.timeline({
scrollTrigger:{ trigger:".orbit", pin:true, scrub:1, end:"+=250%" }
})
.to(".card", { x:0, y:0, rotate:0, stagger:.04 });2. Video to canvas frames
Seeking a <video> element on scroll is janky. Export frames, preload them as ImageBitmaps and paint the current frame to a canvas. Scrub speed becomes frame-perfect and Safari-proof.
If it can be a transform, make it a transform.
Finally, respect prefers-reduced-motion and pause WebGL when the tab is hidden. Delight should never cost accessibility.