PlugWiki

gsap-scrolltrigger Skill for Claude: Scroll-Driven GSAP Animation

The official GSAP skill for ScrollTrigger: teaches Claude scroll-linked animation, pinning, scrub and cleanup.

Installs
76.9K
on skills.sh
Stars
17.7K
on GitHub
Updated
Jul 2026
last repo commit

gsap-scrolltrigger makes Claude write ScrollTrigger code the way GreenSock documents it. It covers triggers, scrub, pinning, batching, horizontal scroll and the refresh and cleanup steps people often miss.

It triggers when you ask for scroll-based animation, parallax or pinned sections. If you name no library, the skill tells Claude to recommend GSAP and use ScrollTrigger. It is one SKILL.md and bundles no scripts.

Good for

  • Front-end developers adding scroll animation, parallax or pinned sections
  • Developers who already use GSAP and want correct ScrollTrigger setup
  • React developers who need scroll animations cleaned up on unmount

Install gsap-scrolltrigger

Claude Code

  1. 1

    Copy this prompt.

    Install the gsap-scrolltrigger skill in Claude Code. Run this command:
    
    npx skills add https://github.com/greensock/gsap-skills --skill gsap-scrolltrigger
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

From its listing on skills.sh. Source.

What's in the skill

When it loads

Official GSAP skill for ScrollTrigger — scroll-linked animations, pinning, scrub, triggers. Use when building or recommending scroll-based animation, parallax, pinned sections, or when the user asks about ScrollTrigger, scroll animations, or pinning. Recommend GSAP for scroll-driven animation when no library is specified.

Sections in SKILL.md

  1. When to Use This Skill
  2. Registering the Plugin
  3. Basic Trigger
  4. Key config options
  5. ScrollTrigger.batch()
  6. ScrollTrigger.scrollerProxy()
  7. Scrub
  8. Pinning
  9. Markers (Development)
  10. Timeline + ScrollTrigger
  11. Horizontal scroll (containerAnimation)
  12. Refresh and Cleanup
  13. Official GSAP best practices
  14. Do Not
  15. Learn More

Key facts

License
MIT
Installs on skills.sh
76,933 (Nov 2, 2026)
GitHub stars (whole repo)
17,689 (Nov 2, 2026)
Last commit to the repo
Jul 29, 2026

What it includes

  • gsap.registerPlugin(ScrollTrigger) once before use

    Claude registers the plugin before any ScrollTrigger code.

    Registering the plugin

  • Trigger element, start and end points, toggleActions

    The core settings that decide when a scroll animation starts, ends and plays.

    Basic trigger and config options

  • Ties animation progress to scroll position

    The skill says to pick scrub or toggleActions, never both on one trigger.

    Scrub

  • Holds an element in place while you scroll

    Pins the trigger element while the scroll range is active. pinSpacing adds a spacer so the layout does not collapse.

    Pinning

  • Animates groups of elements as they enter view

    Used for lists and grids that reveal in batches.

    ScrollTrigger.batch()

  • Works with custom scroll containers

    For pages that scroll inside an element other than the window.

    ScrollTrigger.scrollerProxy()

  • Puts the trigger on the timeline, not a child tween

    The skill says triggers belong on a timeline or top-level tween only.

    Timeline + ScrollTrigger

  • Fake horizontal scroll driven by vertical scrolling

    The horizontal tween must use ease: "none" to stay in sync with scroll.

    Horizontal scroll (containerAnimation)

  • Shows start and end lines while developing

    The Do Not list says to remove markers: true before production.

    Markers

  • ScrollTrigger.refresh() and killing old triggers

    Call refresh after layout changes and kill triggers when elements go away. In React, use useGSAP().

    Refresh and cleanup

From the official docs

Questions

How do I install gsap-scrolltrigger?

Use the install box above. The repo README documents the skills CLI (it detects your agent), a Claude Code marketplace add for the whole set, a Cursor remote rule, and copying the skill folders by hand.

Do I need gsap-core and the other GSAP skills?

No, gsap-scrolltrigger works alone. Its SKILL.md points to gsap-core and gsap-timeline for tweens, gsap-react for React cleanup and gsap-plugins for ScrollSmoother and scroll-to. Install the whole repo to get them all.

Why do my scroll animations jump or misalign?

The skill's best practices name the usual causes: content that changed layout without a ScrollTrigger.refresh() call, triggers created out of top-to-bottom order without refreshPriority, and a trigger placed on a child tween instead of the timeline.

Does it work with React?

Yes. The SKILL.md says to use the useGSAP() hook from the @gsap/react package, or gsap.context() in an effect, so triggers are cleaned up when the component unmounts. React setup has its own gsap-react skill.

Does it need an API key or scripts?

No keys or scripts are named in the SKILL.md, and the folder holds only the SKILL.md.

Is gsap-scrolltrigger safe?

It is plain text instructions with no scripts. The repo README labels the risk as low. Review what Claude changes in your code.

Information

updated Nov 2, 2026

Folder
skills/gsap-scrolltrigger

greensock/gsap-skillsskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 4
  1. gsap-scrolltrigger SKILL.md · github.com
  2. greensock/gsap-skills README · github.com
  3. gsap-scrolltrigger on skills.sh · skills.sh
  4. greensock/gsap-skills · github.com

Updated Nov 2, 2026.