# Lenis

> Smooth, inertia-based wheel scrolling that keeps native scroll position, sticky and anchors working.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/lenis

free

Smooth, inertia-based wheel scrolling that keeps native scroll position, sticky and anchors working.

by darkroom.engineering[GitHub](https://github.com/darkroomengineering/lenis)[npm](https://npmjs.com/package/lenis)

[visit](https://lenis.dev/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://lenis.dev](https://lenis.dev/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [GSAP](https://tastebase.ehsanulsiam.workers.dev/browse/gsap)

Timeline animation engine with ScrollTrigger, SplitText, Flip and MorphSVG, now free including every plugin.

no preview

### [Motion](https://tastebase.ehsanulsiam.workers.dev/browse/motion)

The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.

no preview

### [Glisse](https://tastebase.ehsanulsiam.workers.dev/browse/glisse)

A faithful web implementation of Apple's Liquid Glass: refracting buttons, switches, tab bars and menus.

no preview

### [Liquid Glass React](https://tastebase.ehsanulsiam.workers.dev/browse/liquid-glass-react)

A single <LiquidGlass> wrapper that adds refraction, chromatic aberration and elastic hover to any content.

## Looks that pick it

[Editorialfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/editorial)[Luxuryfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/luxury)[Art decofirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/art-deco)[Quiet luxuryfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/quiet-luxury)[Swiss / Internationalfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/swiss)[Magazinefirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/magazine)[Kinetic typographyfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/kinetic-typography)[Oversized typefirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/oversized-type)[Bauhausfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/bauhaus)[Mid-century modernfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/mid-century-modern)[Dark academiafirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/dark-academia)[Maximalismfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/maximalism)[and 3 more](https://tastebase.ehsanulsiam.workers.dev/looks)

## For your agent

##### Install

`npm i lenis`

##### Use it for

- an awwwards-style marketing or portfolio site with scroll-driven storytelling
- keeping GSAP ScrollTrigger or Motion scroll animations from stepping on mouse-wheel scrolling
- smooth anchor navigation on a long one-page site

##### Skip it when

- apps, dashboards, docs and anything with long reading or dense scrolling: smooth-scroll hijacking frustrates users; keep native scroll
- you only want smooth anchor jumps: CSS scroll-behavior: smooth is enough
- a scroll progress bar or other scroll-linked effect that keeps native scroll feel: use motion useScroll, gsap ScrollTrigger or CSS scroll-driven animations alone
- elements that fade or slide in on scroll: use motion's whileInView or gsap ScrollTrigger; lenis only changes how the page scrolls

##### What's inside17 free

- Lenis (core)
- ReactLenis
- useLenis
- lenis/vue
- lenis/snap
- lenis/framer
- scrollTo()
- start() / stop()
- raf()
- Events (scroll, virtual-scroll)
- Anchors
- Infinite scroll
- Horizontal orientation
- syncTouch
- Nested scroll (data-lenis-prevent)
- GSAP ScrollTrigger integration
- Recommended CSS (lenis.css)

##### Facts

**Frameworks**
vanilla, react, vue, svelte, solid, angular

**Styling**
unstyled

**Weight**
small

**Accessibility**
weak

**Maturity**
established

**License**
MIT

**Price**
Free

##### Pairs with

[GSAP](https://tastebase.ehsanulsiam.workers.dev/browse/gsap)[Motion](https://tastebase.ehsanulsiam.workers.dev/browse/motion)

```
import { ReactLenis } from 'lenis/react'
import 'lenis/dist/lenis.css'

<ReactLenis root />
```

https://lenis-playground-darkroom-engineering.vercel.app/core

Loading website

[Visit](https://lenis.dev/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
