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.
React View Transitions Skill
Vercel's official guide to React's <ViewTransition> API — shared elements, list identity, Suspense reveals and directional route animations without an animation library.
Install
Other ways to install
About
- Covers React's <ViewTransition> component and transition types
- Prioritised patterns: shared element, Suspense reveal, list identity, enter/exit, route change
- Matches animation style to navigation type
- Directional forward/back navigation animations
- Next.js App Router integration notes
- Accessibility and reduced-motion guidance
- No third-party animation library required
React View Transitions is an official Vercel agent skill covering React's <ViewTransition> component and the browser's native document.startViewTransition — the way to animate between UI states without pulling in Framer Motion or a comparable runtime.
It leads with restraint, not with API surface. The skill opens with a rule that most animation documentation omits: every transition should communicate a spatial relationship or continuity, and if you cannot articulate what a given animation communicates, you should not add it. From there it gives a prioritised list of five patterns — shared element, Suspense reveal, list identity, enter/exit state change, and route change — to be applied in order, together with a table matching animation style to navigation type. Directional slides are reserved for hierarchical and ordered navigation; using them for tab-to-tab movement falsely implies depth.
Then it gets specific. Roughly 14KB of guidance covers the separation of concerns the API is built on — declare what animates with <ViewTransition>, trigger when with startTransition, useDeferredValue or Suspense, and control how with CSS classes — plus the critical placement rule, transition types and addTransitionType, handling router.back() and the browser back button, shared-element readiness, layout displacement morphs, forcing re-enter with key, how multiple concurrent transitions interact, and the nested-transition limitation.
Framework and accessibility notes that save time. It documents that Next.js App Router already bundles React canary internally, so you should not install react@canary even though npm ls react looks like you need to — a genuinely common misstep. Unsupported browsers skip animations gracefully, and the skill covers prefers-reduced-motion handling.
MIT-licensed, part of vercel-labs/agent-skills, installable with npx skills add vercel-labs/agent-skills.
SKILL.md
The instructions your agent loads, as published by Vercel.
Related Skills
See all React View Transitions alternativesSkill: React Composition Patterns
by Vercel
Vercel's official skill for React component architecture — replace boolean prop proliferation with compound components, lifted state and explicit variants. Includes React 19 APIs.
Skill: Vercel React Best Practices
by Vercel
Vercel Engineering's React and Next.js performance playbook as an agent skill — 70 rules across 8 categories, ordered by impact, for writing and refactoring fast components.
The Sonner author's own guide skill for the React toast library: setting up the Toaster, choosing the right toast() call, styling from defaults to headless, and fixing toasts that misbehave.