darkroomengineering/lenis

Lightweight smooth scroll

TypeScriptโ˜… 17.5k๐ŸŽจ UI Kits & Design

What

Smooth-scroll library from darkroom.engineering that keeps native scroll behaviour (position: sticky, etc.) and pairs well with GSAP ScrollTrigger.

How to use

bash
npm i lenis
javascript
import Lenis from 'lenis';
const lenis = new Lenis({ autoRaf: true });

Reach for it when

a scroll-heavy site needs smooth, consistent scrolling.