GSAP React is the official GreenSock skill for animating in React and Next.js. It covers installing gsap and @gsap/react, the useGSAP hook, refs as targets, dependency arrays, scope and revertOnUpdate, and gsap.context inside useEffect.
It also explains context-safe callbacks and server-side rendering.
What You Get
- Install commands for gsap and @gsap/react
- Patterns for useGSAP, refs, scope and dependencies
- Notes on SSR in Next.js and context-safe callbacks
Common Use Cases
- Animating a React component on mount
- Cleaning up animations on unmount
- Using GSAP in a Next.js app
What Makes It Unique
It centers on the useGSAP hook from GreenSock, which handles cleanup for you, and keeps gsap.context in useEffect as the fallback.
Under The Hood
The skill is a single SKILL.md with no scripts. It tells the assistant to run npm install for gsap and @gsap/react, then write component code. It reaches no network on its own.