- Home
- Skills
- Frontend & Web Apps
- GSAP Scroll Animations: Award-Style, 60fps, Accessible
GSAP Scroll Animations: Award-Style, 60fps, Accessible
by Ignasi
Build 60fps scroll-driven web animations using GSAP, ScrollTrigger, and Lenis for React, Vue, and Vanilla JS.
Free
GSAP Scroll Animations: Award-Style, 60fps, Accessible
Example session with this skill installed
Build a staggered scroll reveal for a 3-column feature section in Next.js using GSAP. Use ScrollTrigger and follow performance best practices.
- Read your context and instructions
- Compiled the gsap scroll animations
I have generated a high-performance feature section using Next.js and GSAP. This implementation uses the @gsap/react hook for automatic cleanup and scopes all animations to the container ref to prevent selector collisions.
Feature Section Reveal
'use client';
import { useRef } from 'react';
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
import { useGSAP } from '@gsap/react';
gsap.registerPlugin(ScrollTrigger);
export default function FeatureSection() {
const container = useRef(null);
useGSAP(() => {
// Staggered reveal for cards
gsap.from('.feature-card', {
y: 50,
autoAlpha: 0,
duration: 0.8,
ease: 'power2.out',
stagger: 0.1,
scrollTrigger: {
trigger: container.current,
start: 'top 80%',
toggleActions: 'play none none reverse',
}
});
// Reduced motion support
const mm = gsap.matchMedia();
mm.add("(prefers-reduced-motion: reduce)", () => {
gsap.set('.feature-card', { y: 0, autoAlpha: 1 });
});
}, { scope: container });
return (
<section ref={container} className="py-20 px-6">
<div className="max-w-6xl mx-auto grid grid-cols-1 md:grid-cols-3 gap-8">
{[1, 2, 3].map((i) => (
<div key={i} className="feature-card p-8 bg-zinc-900 rounded-xl">
<div className="h-12 w-12 bg-blue-500 rounded-lg mb-6" />
<h3 className="text-xl font-bold mb-3">Feature {i}</h3>
<p className="text-zinc-400">
High-performance animation using transform and autoAlpha.
</p>
</div>
))}
</div>
</section>
);
}
Next steps
- Add
gsap.registerPlugin(ScrollTrigger)to your root layout or a dedicated provider to avoid redundant registration. - Adjust the
startproperty in thescrollTriggerobject to fine-tune when the animation begins based on your page layout. - Install the dependencies by running
npm i gsap @gsap/react.
Connects securely to your tools. The creator never sees your data.
About this skill
Standard CSS transitions often fail to deliver the high-end feel required for modern landing pages. This skill implements the GreenSock Animation Platform (GSAP) to create performance-optimized, scroll-driven web experiences. It handles the complex coordination between scroll positions and visual states while ensuring 60fps execution.
What it does
- Scroll-driven scenes utilizing ScrollTrigger for pinning, scrubbing, and parallax effects.
- Complex sequencing through GSAP timelines to orchestrate multi-step reveals.
- Typography effects using SplitText for word and line-level reveal animations.
- Smooth scrolling integration via Lenis to unify scroll feel across browsers.
- Layout transitions employing Flip for smooth state changes across DOM updates.
How it works
- Planning: Define the purpose, triggers, and easing for each motion sequence.
- Integration: Setup specific framework patterns for React, Vue, or Vanilla JS.
- Implementation: Build staggered reveals, pinned sections, or horizontal tracks.
- Optimization: Apply performance rules for transforms and opacity to ensure 60fps.
- Accessibility: Configure reduced-motion support and JS-disabled fallbacks.
Frameworks & tools
This skill supports React, Next.js, Vue, Nuxt, and plain HTML. It utilizes the core GSAP library along with plugins including ScrollTrigger, SplitText, and Flip, plus Lenis for smooth scrolling.
Why this beats prompting it yourself
Writing GSAP code that does not break on route changes or window resize is difficult. This skill enforces proper scoping with useGSAP or gsap.context and includes automatic cleanup logic to prevent memory leaks and duplicate triggers.
Use cases
- Build an award-style landing page with pinned sections and parallax backgrounds.
- Create staggered card reveals that trigger as the user scrolls down.
- Implement horizontal scroll sections for product galleries or timelines.
- Design high-performance text reveals that respect accessibility settings.
Known limitations
Requires specific GSAP plugins for advanced features like SplitText. Animations must be limited to transform and opacity properties for performance. Needs client-side execution in SSR frameworks.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
2 uses
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 11 days ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in Frontend & Web Apps
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.