vercel-labs avatar

Vercel React View Transitions

A comprehensive guide for React's native View Transition API that covers the full implementation workflow from audit to deployment. Shows you how to animate route changes, shared elements, and component states using browser-native transitions instead of JavaScript animation libraries. Includes CSS recipes for common patterns like directional navigation and list reordering, plus specific guidance on transition types and Suspense integration. The implementation order and "when to animate" framework helps you avoid over-animating while ensuring transitions actually communicate spatial relationships. Works out of the box with Next.js App Router.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
26
skills.sh installs
185.5K
GitHub stars
33.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add vercel-labs/agent-skills --skill vercel-react-view-transitions --agent claude-code

Installs into .claude/skills of the current project.

Files

React View Transitions

Animate between UI states using the browser's native document.startViewTransition. Declare what with <ViewTransition>, trigger when with startTransition / useDeferredValue / Suspense, control how with CSS classes. Unsupported browsers skip animations gracefully.

When to Animate

Every <ViewTransition> should communicate a spatial relationship or continuity. If you can't articulate what it communicates, don't add it.

Implement all applicable patterns from this list, in this order:

PriorityPatternWhat it communicates
1Shared element (name)"Same thing — going deeper"
2Suspense reveal"Data loaded"
3List identity (per-item key)"Same items, new arrangement"
4State change (enter/exit)"Something appeared/disappeared"
5Route change (page-level)"Going to a new place"

This is an implementation order, not a "pick one" list. Implement every pattern that fits the app. Only skip a pattern if the app has no use case for it.

Choosing Animation Style

Sponsors

Details

Repository
github.com/vercel-labs/agent-skills
Categories
Frontend Development, Backend & APIs, Documentation, AI & Agent Building, Cloud & Infrastructure, Design & UI/UX
First seen
Apr 16, 2026

More from vercel-labs/agent-skills

All 14
1wshobson avatartailwind-design-systemwshobson/agentsBuild scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implemen72.7Kskills.sh installs
2heygen-com avatartailwindheygen-com/hyperframesTailwind CSS v4.2 browser-runtime patterns for HyperFrames compositions. Use when scaffolding or editing projects created with `hyperframes init --tailwind`, wr70.6Kskills.sh installs
3expo avatarexpo-tailwind-setupexpo/skillsFramework (OSS). Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling53.6Kskills.sh installs
4angular avatarangular-developerangular/skillsGenerates Angular code and provides architectural guidance. Trigger when creating projects, components, services, or HTTP communication, or for best practices o48.9Kskills.sh installs
5nextlevelbuilder avatarui-stylingnextlevelbuilder/ui-ux-pro-max-skillCreate beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visu48.2Kskills.sh installs
6wshobson avatarnextjs-app-router-patternswshobson/agentsMaster Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications, implementi33.6Kskills.sh installs