virus1260/ai-agents-skills-vault/lenis-smooth-scroll

Claude Code and agent skill by virus1260/ai-agents-skills-vault

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Ultra-smooth momentum scrolling integration for web applications using Lenis (@studio-freight/lenis / lenis/react) with GSAP ScrollTrigger synchronization.

Install

npx vskill@latest install virus1260/ai-agents-skills-vault/lenis-smooth-scroll

SKILL.md

The same SKILL.md was published earlier as virus1260/ai-agents-skills-vault/lenis-smooth-scroll.

Lenis Smooth Scroll

Lenis is a lightweight, robust, high-performance smooth scroll library used by award-winning Awwwards web experiences.

Core Installation

bash
npm install lenis
# or for React / Next.js
npm install lenis @studio-freight/react-lenis

Vanilla JavaScript Setup

javascript
import Lenis from 'lenis';
const lenis = new Lenis({
duration: 1.2,
easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
smoothWheel: true,
orientation: 'vertical',
gestureOrientation: 'vertical',
});
function raf(time) {
lenis.raf(time);
requestAnimationFrame(raf);
}
requestAnimationFrame(raf);

GSAP ScrollTrigger Integration

To synchronize Lenis with GSAP ScrollTrigger so triggers align perfectly:

javascript
import Lenis from 'lenis';
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
gsap.registerPlugin(ScrollTrigger);
const lenis = new Lenis();
lenis.on('scroll', ScrollTrigger.update);
gsap.ticker.add((time) => {
lenis.raf(time * 1000);
});
gsap.ticker.lagSmoothing(0);

React / Next.js (App Router) Component

tsx
'use client';
import { ReactLenis, useLenis } from 'lenis/react';
export default function SmoothScrollLayout({ children }: { children: React.ReactNode }) {
return (
<ReactLenis root options={{ lerp: 0.1, duration: 1.5, smoothWheel: true }}>
{children}
</ReactLenis>
);
}

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/virus1260/ai-agents-skills-vault/lenis-smooth-scroll/badge)](https://verified-skill.com/skills/virus1260/ai-agents-skills-vault/lenis-smooth-scroll)

Something wrong with this skill or its page? Tell us.