Set up Lenis smooth scroll. Use when: - User mentions "smooth scroll", "lenis", "scroll behavior" - User wants to add smooth scrolling to the app - Setting up scroll-based animations
Scanned 2/12/2026
Install via CLI
openskills install darkroomengineering/cc-settings---
name: lenis
description: |
Set up Lenis smooth scroll. Use when:
- User mentions "smooth scroll", "lenis", "scroll behavior"
- User wants to add smooth scrolling to the app
- Setting up scroll-based animations
---
# Lenis Smooth Scroll Setup
Set up Lenis for smooth scrolling in a Next.js/React app.
## Installation
```bash
bun add lenis@latest
```
## Basic Setup (Satus already includes this)
### Create Lenis Provider
```tsx
// components/lenis/index.tsx
'use client'
import { ReactLenis } from 'lenis/react'
interface LenisProps {
children: React.ReactNode
}
export function Lenis({ children }: LenisProps) {
return (
<ReactLenis
root
options={{
duration: 1.2,
easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
orientation: 'vertical',
smoothWheel: true,
}}
>
{children}
</ReactLenis>
)
}
```
### Add to Layout
```tsx
// app/layout.tsx
import { Lenis } from '@/components/lenis'
export default function RootLayout({ children }) {
return (
<html>
<body>
<Lenis>{children}</Lenis>
</body>
</html>
)
}
```
## Using Lenis
### Scroll to Element
```tsx
import { useLenis } from 'lenis/react'
function Component() {
const lenis = useLenis()
const scrollToSection = () => {
lenis?.scrollTo('#section-id', { duration: 1.5 })
}
return <button onClick={scrollToSection}>Scroll</button>
}
```
### Scroll Events
```tsx
useLenis(({ scroll, velocity, direction }) => {
// React to scroll
console.log({ scroll, velocity, direction })
})
```
### With GSAP ScrollTrigger
```tsx
import { useLenis } from 'lenis/react'
import gsap from 'gsap'
import { ScrollTrigger } from 'gsap/ScrollTrigger'
gsap.registerPlugin(ScrollTrigger)
useLenis(() => {
ScrollTrigger.update()
})
```
## Satus Note
If using Satus starter, Lenis is already configured. Check:
- `components/lenis/index.tsx`
- `app/layout.tsx`
## Remember
- Always fetch latest docs before implementing
- Store any gotchas as learnings
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.