01
It starts by itself
PR changes GSAP components. Runs in GitHub Actions or Claude Code routine.
- ↻ PR changes GSAP components
pull_request touching React files that import gsap or @gsap/react
No leaking GSAP animations in React.
Install the GSAP React skill and make it a habit: follow https://gethabit.dev/skills/greensock/gsap-react.md
64K installs17K starsMIT licenceSource on GitHub ↗

GSAP React
by greensock · 64K installs
The skill
The gsap react skill is the official GreenSock guide to GSAP in React and Next.js: the useGSAP hook, refs and scope, gsap.context() with cleanup, contextSafe callbacks and server rendering.
Only when you ask.
The habit
No leaking GSAP animations in React.
↻ Runs by itselfPR changes GSAP components
When does it start? How does it check its work? What does it remember?
Stops after one pull request per run.
List React components in the diff that create GSAP tweens, timelines or ScrollTriggers.
Prefer useGSAP() from @gsap/react over useEffect, with a ref passed as scope.
Where useEffect is used, make sure gsap.context() is reverted in the cleanup.
Wrap animations made in event handlers with contextSafe and remove the listeners on cleanup.
Make sure no GSAP code runs on the server in Next.js or similar.
Post findings on the pull request and update the list.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the GSAP React skill helps.
Without a scope, selectors like .box can match elements outside the component.
No. Those frameworks have a separate skill, gsap-frameworks.
Copy the prompt at the top into your agent. It installs the skill from greensock/gsap-skills and sets up the habit. Or run npx skills add greensock/gsap-skills --skill gsap-react.
Yes. It is published under MIT. Habit is free too.
Install the GSAP React skill and make it a habit: follow https://gethabit.dev/skills/greensock/gsap-react.md
All greensock skills →More code skills →
Works in
Made by greensock, published under MIT. Habit links to the original and never changes it. Is this your skill?