Lenis eases native page scrolling for vertical, horizontal, and nested layouts. It targets WebGL sync, parallax, and scroll-linked animation without breaking sticky positioning or anchors.
Overview
Lenis is a browser library that smooths scrolling while keeping the page on native scroll mechanics. That approach preserves sticky positioning, anchor links, and reduced-motion preferences while adding interpolated wheel and touch movement.
It supports vertical and horizontal axes, nested scroll regions, optional section snapping via a snap plugin, and infinite scroll modes. Settings cover duration, lerp smoothing, wheel multipliers, and hooks to exclude elements such as modals from smoothing.
The project ships npm packages for vanilla JavaScript, React, Vue, and Framer, plus a no-code script tag setup. It integrates with GSAP ScrollTrigger and is intended to keep WebGL scenes and DOM scroll positions aligned on one animation loop.
The core build is small, dependency-free, and exposes methods to start, stop, resize, scroll programmatically, and honor prefers-reduced-motion by disabling smoothing when users request it.
Key features
- Native scroll with smooth interpolation
- Vertical, horizontal, and nested scroll
- React, Vue, and Framer adapters
- GSAP ScrollTrigger integration
- Anchor link and reduced-motion support
- Optional scroll snap plugin
- No-code script tag install
- Small dependency-free bundle
Use cases
- Portfolio and marketing site scroll feel
- WebGL scenes synced to scroll position
- Parallax and scroll-driven animations
- Framer or React landing pages