npx skills add ...
npx skills add freshtechbro/claudedesignskills --skill gsap-scrolltrigger
Comprehensive skill for GSAP (GreenSock Animation Platform) and ScrollTrigger plugin. Use this skill when creating web animations, scroll-driven experiences, timelines, tweens, scroll-triggered animations, pinning, scrubbing, parallax effects, or animating DOM elements, SVG, Canvas, WebGL, or Three.js. Triggers on tasks involving GSAP, ScrollTrigger, smooth animations, scroll effects, or animation sequencing.
npx skills add freshtechbro/claudedesignskills --skill gsap-scrolltrigger
GSAP (GreenSock Animation Platform) is the industry-leading JavaScript animation library for creating high-performance, production-quality animations. ScrollTrigger is GSAP's powerful plugin for scroll-driven animations. Together, they enable everything from simple UI transitions to complex scroll-based storytelling experiences.
A tween is a single animation from point A to point B.
Timelines orchestrate multiple tweens in sequence or overlap.
Control when animations start within a timeline:
Format: "[trigger position] [viewport position]"
Control animation at four scroll points:
Common patterns:
will-change CSSScrollTrigger handles this automatically, but for custom resize logic:
invalidateOnRefreshFor dynamic values that change on resize:
This skill includes bundled resources:
api_reference.md: Quick API reference (tween methods, timeline methods, ScrollTrigger properties)easing_guide.md: Visual easing reference with use casescommon_patterns.md: Copy-paste patterns for common scenariosgenerate_animation.py: Generate boilerplate GSAP codetimeline_builder.py: Interactive timeline sequence builderstarter_scroll/: Complete scroll-driven site templateeasings/: Easing visualization HTML toolexamples/: Real-world ScrollTrigger examplesUse this skill when:
For Three.js-specific animations, also reference the threejs-webgl skill. For React components with built-in animations, reference the motion-framer skill.