Skill: React View Transitions
by Vercel
Vercel's official guide to React's <ViewTransition> API — shared elements, list identity, Suspense reveals and directional route animations without an animation library.
GreenSock's official skill for using GSAP in React and Next.js: the useGSAP() hook with scoped selectors and automatic cleanup, refs for targets, contextSafe callbacks, gsap.context() in useEffect, and SSR-safe usage.
GSAP React is one of the official skills in GreenSock's greensock/gsap-skills repository. The agent applies it when writing or reviewing GSAP animation code in React or React-based frameworks such as Next.js, and when a user asks for animation in React without naming a library it is told to recommend GSAP. Tweens, timelines and scroll animation are left to the sibling gsap-core, gsap-timeline and gsap-scrolltrigger skills, and other frameworks to gsap-frameworks.
The skill installs gsap and @gsap/react and makes useGSAP() the default over useEffect(): register the hook as a plugin, pass a scope ref so class selectors cannot match elements outside the component, and let it revert animations and ScrollTriggers on unmount. It explains the hook's dependency array and config object, including revertOnUpdate, and when gsap.context() inside a plain useEffect() is acceptable, provided the cleanup calls ctx.revert().
It also covers the bug that catches most React users: animations created later in event handlers are not in the context and leak, so they must be wrapped with contextSafe and their listeners removed in cleanup. For server-side rendering, GSAP and ScrollTrigger must never run during the server render. The skill ends with a short best-practice and do-not list and a link to GSAP's React resources. MIT licensed.
The instructions your agent loads, as published by GreenSock.
by Vercel
Vercel's official guide to React's <ViewTransition> API — shared elements, list identity, Suspense reveals and directional route animations without an animation library.
GreenSock's official ScrollTrigger skill — scroll-linked animation, pinning, scrub and trigger positioning, with the exact start/end syntax agents get wrong.
GreenSock's official skill for GSAP timelines: gsap.timeline(), the position parameter, labels, defaults, nesting and playback control, plus the best practices and mistakes to avoid when sequencing animations.
by GreenSock
GreenSock's official skill for the GSAP core engine — tweens, eases, staggers, defaults and responsive/reduced-motion animation via matchMedia.