butter-smooth-scrolling - Add momentum-based smooth scrolling
Adds lerp-based momentum scrolling for mouse wheels, trackpads, and touch while complementing existing anchor-link smooth scrolling.
Tags
Updated: 2026-09-28Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Handle wheel scrolling
- Handle trackpad scrolling
- Handle touch scrolling
- Interpolate scroll positions
- Configure scrolling smoothness
- Respect reduced motion
Inputs
- Next.js application
- Locale layout file
- Scroll configuration options
Outputs
- ButterScroll component file
- Updated locale layout
- Momentum scrolling behavior
- Reduced-motion fallback
Requirements
- Next.js App Router
- React 19
- Browser requestAnimationFrame support
