lenis

Configure Lenis smooth scrolling in React applications with a ReactLenis provider.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/sethihq/guide --skill lenis-sethihq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lenis
Source: https://github.com/sethihq/guide/tree/main/public/kit/skills/lenis
Command: npx skills add https://github.com/sethihq/guide --skill lenis-sethihq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the integration of Lenis smooth scrolling into React applications, enhancing user experience with fluid page navigation.

Core Features & Use Cases

  • Smooth Scrolling Implementation: Provides a straightforward way to add Lenis smooth scrolling.
  • Scroll-Based Animations: Facilitates the setup for scroll-triggered animations using GSAP ScrollTrigger.
  • Use Case: Implementing a modern, engaging scrolling experience on a marketing website or a portfolio to make content more dynamic and interactive.

Quick Start

Add the Lenis smooth scroll provider to your app's layout file.

Frequently Asked Questions about lenis

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

FAQPage Schema
How do I add smooth scrolling to a React application?

To add smooth scrolling in React, you install the 'lenis' package and integrate a ReactLenis provider component into your application's root layout file. This setup configures Lenis to enable fluid page navigation and enhanced scroll behavior across your web project.

Can I use Lenis smooth scroll with Next.js?

Yes, Lenis smooth scroll works with Next.js. The skill is specifically designed for web development projects using frameworks like Next.js, allowing you to wrap your application in a ReactLenis provider directly within your Next.js layout file for fluid scroll behavior.

How do I set up scroll-based animations using Lenis?

Lenis facilitates the setup for scroll-triggered animations by integrating with GSAP ScrollTrigger. Once the ReactLenis provider is added to your layout, you can configure scroll-based animations to make your website content more dynamic and interactive.

What is the best way to implement smooth scroll behavior for a marketing website?

The best way to implement smooth scroll behavior for a marketing website is using Lenis in React. It provides a straightforward setup to create a modern, engaging scrolling experience, making page navigation and content presentation more dynamic for users.

Do I need any dependencies to configure smooth scrolling in React?

You need to install the 'lenis' package to configure smooth scrolling in React. After installation, you integrate the ReactLenis provider component into your application's layout to enable the enhanced scroll behavior and fluid page navigation.

Why use Lenis for scroll behavior instead of native browser scrolling?

Lenis enhances native scroll behavior by providing fluid page navigation and enabling scroll-based animations. It solves the problem of basic native scrolling by offering a modern, engaging experience specifically tuned for React and Next.js web applications.