DeepVerse LabSoftware Agency
Loading experience000
DeepVerse Lab
Home/Blog/Engineering

Scroll-driven animation in 2026: GSAP, Lenis and the canvas frame trick

Tania Akter
Tania Akter28 Oct 2026 · 7 min read
Scroll-driven animation in 2026: GSAP, Lenis and the canvas frame trick

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.

Let’s talk

Have a product in mind?

Tell us what you want to build. We reply within 24 hours with a plan, timeline and estimate.

Start a project