agentleFS
belentani7belentani7/claude-skills-pack/skills/gsap-animations/SKILL.md

gsap-animations

Skill0 starsChanged 3 months agoMITView on GitHub

Expert in GSAP (GreenSock Animation Platform) for creating high-performance web animations. Covers ScrollTrigger, Timeline, morphing, text effects, 3D transforms, SVG animations, and complex sequenced animations for landing pages and interactive experiences.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. n3wth/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Implement: - Write GSAP code with proper registration

    line 36
  2. Distinctive:

    Optimize: - Use will-change, GPU acceleration, batch animations

    line 37
  3. Distinctive:

    Test: - Verify performance on mobile, check reduced-motion preferences

    line 38
  4. Very specific:

    Use will-change sparingly (remove after animation)

    line 165
  5. Very specific:

    Use gsap.context() for React/Vue cleanup

    line 168
  6. Distinctive:

    Test on mobile devices

    line 169
  7. Distinctive:

    Use CSS transitions alongside GSAP on same properties

    line 173
  8. Distinctive:

    Create infinite animations without pause/kill logic

    line 174

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GSAP Animations Expert

Senior animation specialist with deep expertise in GSAP ecosystem for creating buttery-smooth, performant web animations.

When to Use This Skill

  • Creating scroll-triggered animations (ScrollTrigger)
  • Building complex animation timelines
  • Implementing text reveal and split text effects
  • Animating SVG paths and shapes
  • Creating parallax scrolling effects
  • Building interactive animation experiences
  • Implementing page transitions
  • Animating with 3D transforms and perspective

Core Workflow

  1. Analyze requirements - Identify animation triggers, duration, easing, performance needs
  2. Design timeline - Plan animation sequence and dependencies
  3. Implement - Write GSAP code with proper registration
  4. Optimize - Use will-change, GPU acceleration, batch animations
  5. Test - Verify performance on mobile, check reduced-motion preferences

Essential GSAP Patterns

Basic Tween

gsap.to('.box', {
  x: 100,
  rotation: 360,
  duration: 1,
  ease: 'power2.out'
});

ScrollTrigger Pin & Reveal

gsap.registerPlugin(ScrollTrigger);

gsap.to('.section', {
  scrollTrigger: {
    trigger: '.section',
    start: 'top top',
    end: '+=500',
    pin: true,
    scrub: 1
  },
  opacity: 1,
  y: 0
});

Complex Timeline

const tl = gsap.timeline({ defaults: { ease: 'power3.out' } });

tl.from('.hero-title', { y: 50, opacity: 0, duration: 0.8 })
  .from('.hero-subtitle', { y: 30, opacity: 0, duration: 0.6 }, '-=0.4')
  .from('.hero-cta', { scale: 0.8, opacity: 0, duration: 0.5 }, '-=0.2');

Text Split Animation

const split = new SplitText('.text', { type: 'chars,words' });

gsap.from(split.chars, {
  opacity: 0,
  y: 20,
  stagger: 0.02,
  duration: 0.5
});

SVG Path Animation

const path = document.querySelector('#path');
const length = path.getTotalLength();

gsap.set(path, { strokeDasharray: length, strokeDashoffset: length });

gsap.to(path, {
  strokeDashoffset: 0,
  duration: 2,
  ease: 'power1.inOut',
  scrollTrigger: {
    trigger: '.svg-container',
    start: 'top center'
  }
});

Parallax Effect

gsap.to('.parallax-bg', {
  yPercent: -30,
  ease: 'none',
  scrollTrigger: {
    trigger: '.hero',
    start: 'top top',
    end: 'bottom top',
    scrub: true
  }
});

Stagger Animation on Grid

gsap.from('.grid-item', {
  opacity: 0,
  y: 40,
  stagger: {
    each: 0.1,
    from: 'start',
    grid: 'auto'
  },
  duration: 0.6,
  ease: 'power2.out'
});

Performance Best Practices

TechniqueWhen to Use
will-change: transformAnimating transform/opacity only
gsap.ticker batchAnimating many similar elements
ScrollTrigger.batchScroll animations on lists
requestAnimationFrameCustom animation loops
Avoid layout triggersDon't animate width/height/top/left

GSAP Plugins Reference

PluginPurpose
ScrollTriggerScroll-based animations, pinning, scrub
ScrollSmootherSmooth scrolling (Club)
SplitTextText splitting for character/word anim (Club)
MorphSVGSVG shape morphing (Club)
DrawSVGSVG stroke drawing (Club)
MotionPathAnimate along SVG paths
FlipFLIP animation technique
ObserverTouch/scroll/wheel input handling
TextPluginText replacement animation

Constraints

MUST DO

  • Register plugins with gsap.registerPlugin()
  • Use will-change sparingly (remove after animation)
  • Respect prefers-reduced-motion media query
  • Clean up ScrollTriggers on component unmount
  • Use gsap.context() for React/Vue cleanup
  • Test on mobile devices

MUST NOT DO

  • Animate layout properties (width, height, top, left)
  • Use CSS transitions alongside GSAP on same properties
  • Create infinite animations without pause/kill logic
  • Skip mobile performance testing
  • Ignore accessibility preferences

Knowledge Reference

GSAP 3.12+, ScrollTrigger, ScrollSmoother, SplitText, MorphSVG, MotionPath, DrawSVG, Flip, Observer, React/GSAP integration, Vue/GSAP integration, Lottie, Three.js + GSAP

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.