
Lenis
JavaScript library that adds smooth scrolling to web pages by wrapping the browser's native scroll.
Lenis is a JavaScript library that smooths scrolling on web pages. It wraps the browser’s native scroll, so position sticky, anchor links and accessibility keep working. One loop can drive WebGL scroll scenes, GSAP ScrollTrigger and parallax effects. It can be started with a line of code from a package manager, or from a script tag with no build step.
Framework packages exist for React, Vue and Framer, and a snap package aligns sections. The maintainer, darkroom.engineering, describes the library as free and open source and accepts sponsorship.
Worth knowing
The README lists its limits: no CSS scroll-snap without the snap package, frame rate caps on some Safari builds and in low power mode, and no smooth scrolling over iframes.
Sources
- 2026-11-16: links
lenis.dev/ - 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/darkroomengineering/lenis - 2026-11-16: links, Categories, Runs as, Install with
github.com/darkroomengineering/lenis/blob/main/README.md - 2026-11-16: Maintainer, License model
github.com/darkroomengineering/lenis/blob/main/LICENSE - 2026-11-16: First release
registry.npmjs.org/lenis - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/lenis - 2026-11-16: Current major version, Last release
github.com/darkroomengineering/lenis/releases/tag/v1.3.27 - 2026-11-16: Contributors
api.github.com/repos/darkroomengineering/lenis/contributors?per_page=1