How Combining GSAP and Lenis Solves Choppy Scroll Animation on the Web
Web developers often struggle with inconsistent scroll animations because native browser scroll delivers position data in discrete jumps rather than a smooth stream, causing stuttering across different devices and input methods. GSAP's ScrollTrigger reads these raw scroll events directly, meaning any instability in the input is inherited by the animation output. Lenis, a smooth scroll library, addresses this by intercepting raw scroll input and interpolating it into a continuous, eased value before applying it to the page. This gives ScrollTrigger a stable, predictable data source to animate against, producing the fluid, high-end feel seen on award-winning websites. The GSAP-plus-Lenis combination has become a go-to setup for developers building scroll-driven animations on professional client projects.





