/web-framework-development:gsap-framer-scroll-animationfrom web-framework-development
Builds production scroll animations using GSAP ScrollTrigger or Framer Motion/Motion v12. Covers parallax, pinned sections, horizontal scroll, scrubbed timelines, and Apple-like scroll effects.
Ships in web-framework-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Choose GSAP ScrollTrigger or Framer Motion/Motion v12 for scroll-driven motion, then implement accessible, performant animation patterns with the correct imports, hooks, cleanup, and reference recipes.
| Need | Use |
|---|---|
| Vanilla JS, Webflow, Vue, pinning, horizontal scroll, complex timelines, scrubbing, snapping, ScrollSmoother, matchMedia | GSAP ScrollTrigger. |
React or Next.js declarative motion, whileInView, useScroll, useTransform, useSpring, variants | Framer Motion / Motion v12. |
| Both in one Next.js app | Use references to prevent duplicated scroll listeners, conflicting transforms, and hydration errors. |
| Creative philosophy and design polish | Use the premium-frontend-ui skill for when and why to animate; this skill owns how. |
Install only the library needed by the chosen approach:
npm install gsap
npm install motion
npm install framer-motion
GSAP setup:
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
gsap.registerPlugin(ScrollTrigger);
Framer/Motion v12 setup:
import { motion, useScroll, useTransform, useSpring } from 'motion/react';
// legacy: import { motion } from 'framer-motion'
| File | Contents |
|---|---|
references/gsap.md | ScrollTrigger API, recipes, React useGSAP, Lenis, matchMedia, accessibility, pinning, scrub, snapping, horizontal scroll, ScrollSmoother. |
references/framer.md | useScroll, useTransform, variants, Motion v12 notes, Next.js tips, whileInView, useSpring, and scroll recipes. |
Read the relevant reference before generating non-trivial code.
gsap.from('.card', {
opacity: 0, y: 50, stagger: 0.15, duration: 0.8,
scrollTrigger: { trigger: '.card', start: 'top 85%' }
});
<motion.div
initial={{ opacity: 0, y: 40 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.6 }}
/>
gsap.to('.hero-img', {
scale: 1.3, opacity: 0, ease: 'none',
scrollTrigger: { trigger: '.hero', start: 'top top', end: 'bottom top', scrub: true }
});
const { scrollYProgress } = useScroll({ target: ref, offset: ['start end', 'end start'] });
const y = useTransform(scrollYProgress, [0, 1], [0, -100]);
return <motion.div style={{ y }} />;
const tl = gsap.timeline({
scrollTrigger: { trigger: '.section', pin: true, scrub: 1, start: 'top top', end: '+=200%' }
});
tl.from('.title', { opacity: 0, y: 60 }).from('.img', { scale: 0.85 });
| Area | Rule |
|---|---|
| GSAP registration | Always call gsap.registerPlugin(ScrollTrigger) before using ScrollTrigger. |
| GSAP scrub | Use ease: 'none' for scrubbed animations. |
| GSAP React | Use useGSAP from @gsap/react, not plain useEffect, so ScrollTriggers are cleaned up. |
| GSAP debug | Use markers: true only during development; remove before production. |
| Framer transform | Put useTransform output in the style prop of a motion.* element, not a plain div. |
| Next.js | Add 'use client' to files using motion hooks. |
| Performance | Animate transform and opacity; avoid width, height, and box-shadow. |
| Accessibility | Check prefers-reduced-motion and provide reduced or disabled motion paths. |
| Prompting | Provide selector, base image, scroll range, start/end strings, scrub/toggleActions, hook choice, offset values, and exact errors. |
Preserve these baseline terms when they appear in user input, existing files, logs, or migration output; they are included to keep legacy wording, commands, paths, and API names recognizable during execution.
/fix@workspaceMUSTauto-cleanscross-referencedesign-levelin-viewmid-2025re-rendersready-to-usereferences/scroll-linked## Scroll animation implementation
**Status:** implemented | planned | blocked
**Library:** GSAP ScrollTrigger | Framer Motion/Motion v12
**Target:** <vanilla JS | React | Next.js>
### Files changed
| File | Pattern | Notes |
| --- | --- | --- |
| `<path>` | <fade-in/parallax/pinned/progress/horizontal> | <cleanup/accessibility/performance notes> |
### Validation
- Package setup: <present/needed>
- Reduced motion: <handled/not handled>
- Runtime check: <pass/fail/not run>
useGSAP when applicable.motion.*, style, and 'use client' when hooks run in Next.js.ease: 'none'.prefers-reduced-motion.transform and opacity.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/chrome-devtoolsHandle `browser-related` tasks and control a live Chrome browser through Chrome DevTools MCP for browser automation, visual inspection, debugging, performance analysis, and emulation. Use when navigating pages, clicking elements, filling forms, handling `alerts/prompts.`, taking snapshots or screenshots, inspecting console and network activity, evaluating JavaScript, profiling Core Web Vitals, or testing viewport and network conditions./markstream-installInstall and configure Markstream streaming Markdown renderers for Vue, React, Svelte, Angular, Nuxt, Next.js, and Vue 2 applications. Use when adding streaming Markdown to AI chat or document interfaces, repairing Markstream styles or SSR, or choosing static, smooth-streaming, or externally parsed AST input./next-intl-add-languageAdd a new locale to a Next.js application that uses next-intl, including message JSON, routing, middleware, and the language toggle UI. Use this skill when the user asks to add a language, locale, translation file, next-intl routing entry, or language selector option./react-container-presentation-componentCreate a React Container/Presentation component under src/components with TypeScript, Storybook, SCSS module, ui/features classification, optional Mantine replacement, and validation. Use when explicitly asked for a Container/Presentation component or when running /react-container-presentation-component.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin web-framework-developmentOther plugins' skills for the same job