implement_lenis_scroll

Integrate Lenis smooth scrolling into React and Next.js App Router projects.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/deadhearth01/SugCreativeSite --skill implement-lenis-scroll
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement_lenis_scroll
Source: https://github.com/deadhearth01/SugCreativeSite/tree/main/.agents/skills/implement_lenis_scroll
Command: npx skills add https://github.com/deadhearth01/SugCreativeSite --skill implement-lenis-scroll

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Lenis smooth scrolling is integrated to eliminate jerky scrolling in React/Next.js apps by providing a consistent, easily reusable scrolling experience.

Core Features & Use Cases

  • Global component integration: Wrap your app to apply smooth scrolling across all pages.
  • App Router compatibility: Works with Next.js App Router and traditional React routing to maintain smoothness during route transitions.
  • Configurable behavior: Supports duration, easing, orientation, and wheel/gesture smoothing with cleanup when unmounted.

Quick Start

Install the Lenis package, create a reusable SmoothScroll component, and wrap your app layout to enable global smooth scrolling.

Frequently Asked Questions about implement_lenis_scroll

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add smooth scrolling to a React or Next.js app to stop jerky page navigation?

To add smooth scrolling and eliminate jerky navigation, you can integrate Lenis by creating a reusable client component and wrapping your app layout to apply consistent vertical scrolling across all pages and route transitions.

Does Lenis smooth scrolling work with the Next.js App Router during route transitions?

Yes, Lenis smooth scrolling is compatible with the Next.js App Router. It maintains smoothness during route transitions by applying a global layout wrapper that persists the scrolling experience across components.

How do I configure smooth scrolling duration and easing in a React project?

You can configure smooth scrolling behavior by adjusting duration, easing, orientation, and wheel or gesture smoothing parameters within the reusable React component integration to customize the scrolling experience.

What is the best way to apply smooth scrolling globally across all pages in a React application?

The best way to apply smooth scrolling globally is to wrap your entire application layout with a reusable client component, ensuring consistent vertical scrolling behavior and automatic cleanup when unmounted.

Do I need to manually handle cleanup when implementing smooth scrolling in React?

No, manual cleanup is not necessary. The Lenis smooth scrolling integration supports automatic cleanup when the React component is unmounted, preventing memory leaks and ensuring stable web performance.