Implement Lenis Scroll
Step-by-step setup for Lenis smooth scrolling in a React or Next.js app, with a reusable wrapper component.
- CCM score
- 43 of 100
- Quality grade
- Quality grade C, 74 of 100
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 186
- skills.sh installs
- 162
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers installing the
lenispackage, building aSmoothScrollclient component, and wrapping the App Routerlayout.tsx - Includes a configured Lenis instance with
duration,easing, vertical orientation, andsmoothWheel, driven byrequestAnimationFrame - Provides cleanup via
lenis.destroy()on unmount, plus notes on scroll restoration in Next.js - Covers GSAP ScrollTrigger integration by updating on Lenis scroll and syncing the
gsap.tickerwithlenis.raf
Quality grade
- Safety25% of the grade100
The skill is a plain Lenis integration tutorial with no attempts to steer graders, hide behavior, or exfiltrate data.
- Tool boundary15% of the grade80
Declares no allowed-tools in its frontmatter. No scripts: it teaches a procedure. It teaches a procedure for wiring a library into a React app rather than running bundled code.
- Workflow quality25% of the grade55
Craft grade 55 of 100 for specificity, expertise, examples, economy and scope.
- Discoverability10% of the grade58
Name "implement_lenis_scroll" is not lowercase with hyphens, 64 characters or less. Description of 87 characters. The description says what the skill does but gives no guidance on when to use it or when not to.
- Provenance and upkeep15% of the grade50
No license found. Last push 10 months ago. Owner account 4 years old.
- Portability10% of the grade100
Relative paths only.
Rubric 2026-12.5 · graded December 4, 2026How we grade
Install
$ npx -y skills add jerrar670/surf-website --skill implement_lenis_scroll -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Implement Lenis Smooth Scroll
This skill guides you through adding buttery smooth scrolling to a React/Next.js application using @studio-freight/lenis (or the newer lenis package).
Prerequisites
- A React or Next.js project.
Steps
1. Install Dependencies
Install the Lenis package.
npm install lenis
# OR depending on version preference
npm install @studio-freight/lenis
2. Create the Lenis Hook/Component
It's best to encapsulate Lenis in a reusable component or hook.
Option A: Global Component (Recommended for Next.js App Router)
Create src/lib/lenis.ts or src/components/SmoothScroll.tsx.
// src/components/SmoothScroll.tsx
'use client'
import { ReactNode, useEffect } from 'react'
import Lenis from 'lenis'
export default function SmoothScroll({ children }: { children: ReactNode }) {
useEffect(() => {
const lenis = new Lenis({
duration: 1.2,
easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
orientation: 'vertical',
gestureOrientation: 'vertical',
smoothWheel: true,
})
function raf(time: number) {
lenis.raf(time)
requestAnimationFrame(raf)
}
Details
- Repository
- github.com/jerrar670/surf-website
- Categories
- Frontend & UI Code, Animation & Motion
- First seen
- Jun 3, 2026
Questions
What does the implement_lenis_scroll skill do?
implement_lenis_scroll guides an agent through adding smooth scrolling to a React or Next.js application using the Lenis package. It walks through installing Lenis, creating a reusable SmoothScroll component with a hook, and wrapping the app layout with it.
How do I install the implement_lenis_scroll skill?
Run npx -y skills add jerrar670/surf-website --skill implement_lenis_scroll -y in your project to install it. Once installed, implement_lenis_scroll lets the agent set up Lenis smooth scrolling in your React or Next.js app.
Where does implement_lenis_scroll fit in the Frontend & UI Code category?
implement_lenis_scroll sits in the Frontend & UI Code category on Claude Marketplaces. It focuses narrowly on adding Lenis smooth scrolling, including GSAP ScrollTrigger integration notes, rather than general frontend guidance.
What does implement_lenis_scroll need to run?
implement_lenis_scroll needs a React or Next.js project and npm to install the lenis package. It also covers integration with GSAP ScrollTrigger if your project uses it.
Similar to Implement Lenis Scroll
More Frontend & UI Codegsap-reactgreensock/gsap-skills89.9K installsOfficial GSAP skill for React that centers on the useGSAP hook, scoped refs, and reliable cleanup.
gsap-frameworksgreensock/gsap-skills84.2K installsLifecycle-safe GSAP patterns for Vue, Nuxt, and Svelte, scoped with gsap.context and reverted on unmount.
motion-reactpedronauck/skills1.2K installsMotion for React skill covering gestures, scroll effects, springs, layout, and exit animations in React apps.
gsap-scrolltriggerfreshtechbro/claudedesignskills3.4K installsComprehensive GSAP and ScrollTrigger guide for tweens, timelines, scroll-linked animation, and pinning.
gsap-framer-scroll-animationgithub/awesome-copilot4.3K installsScroll-driven motion toolkit covering GSAP ScrollTrigger and Framer Motion, with Copilot prompts and recipes.
awwwards-animationsdevmartinese/awwwards-animations-skill3.4K installsProduction-grade React animation skill covering GSAP, Motion, Anime.js, and Lenis for award-level scroll and interaction effects.