Scroll Animation Smooth Scroll
- from @karaui
- by kara <ztzyrant@gmail.com>
Wraps the page or a contained scroller in Lenis and hands out scrollY, progress and velocity motion values plus a scrollTo helper through useSmoothScroll; with reduced motion it keeps native scrolling.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @karaui/smooth-scrollLive preview
No live preview has been built for this component yet.
Registry dependencies0
The CLI adds no other registry items with this one.
