Scroll
Smooth scroll
Optional inertial wheel scrolling that glides to a stop. Native scrolling everywhere else.
Paste it into ChatGPT, Claude, Cursor or v0.
Usage
import { SmoothScroll } from '@vizzele/react';
// once, at the root
<SmoothScroll lerp={0.1} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
lerp | number | 0.1 | Smoothing (lower = silkier). |
wheelMultiplier | number | 1 | Wheel speed. |
container | HTMLElement | Window | window | Scroll root. |
Accessibility
- Only the mouse wheel is smoothed. Keyboard, scrollbar, touch and nested scroll areas stay native.
- Pinch-zoom (ctrl+wheel) is never captured. Disabled entirely with reduced motion.