Vercel React View Transitions
Native-feeling page, route, and shared-element animations via React's View Transition API, with no third-party animation library.
- CCM score
- 87 of 100
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 15
- skills.sh installs
- 202.6K
- GitHub stars
- 35.1K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers
<ViewTransition>placement, the enter, exit, update, and share triggers, and transition types set throughaddTransitionType - Includes implementation steps in
references/implementation.mdand ready-to-use CSS inreferences/css-recipes.mdfor directional navigation - Enforces that
<ViewTransition>sits before any DOM nodes, since a wrapping element suppresses enter and exit animations - Designed for Next.js apps and React 19.3 or newer projects that want native browser transitions instead of animation libraries
Install
$ npx -y skills add vercel-labs/agent-skills --skill vercel-react-view-transitions -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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:
| Priority | Pattern | What it communicates |
|---|---|---|
| 1 | Shared element (name) | "Same thing — going deeper" |
| 2 | Suspense reveal | "Data loaded" |
| 3 | List identity (per-item key) | "Same items, new arrangement" |
| 4 | State change (enter/exit) | "Something appeared/disappeared" |
| 5 | Route 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
Details
- Repository
- github.com/vercel-labs/agent-skills
- Categories
- Frontend & UI Code, Animation & Motion
- First seen
- Apr 16, 2026
Questions
What does the vercel-react-view-transitions skill do?
It guides you through adding smooth animations with React's View Transition API, using the ViewTransition component, addTransitionType, and CSS view transition pseudo-elements. It covers page transitions, route changes, shared element animations, enter and exit animations, list reordering, and directional forward and back navigation.
Who should use the vercel-react-view-transitions skill?
It is for developers who want native-feeling animations between UI states in React without third-party animation libraries. It also covers integrating view transitions in Next.js, and it applies when you mention view transitions, startViewTransition, or transition types.
How do I install the vercel-react-view-transitions skill?
Run npx -y skills add vercel-labs/agent-skills --skill vercel-react-view-transitions -y in your project. Once installed, your agent can follow the skill's workflow to audit your app and add view transitions with the appropriate CSS recipes.
Where does this skill sit in its category?
It is in the Frontend and UI Code category, where it ranks in the top 10. Other skills in that category include vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns, and lark-apps.
Does the skill need React canary or a specific React version?
In Next.js you should not install react@canary, because the App Router already bundles React canary internally. Without Next.js, you need stable react and react-dom 19.3 or newer, since ViewTransition and addTransitionType became stable in that release.
More from vercel-labs/agent-skills
All 12- Vercel Cli With Tokens164.8K
- Vercel Optimize141.2K
- Writing Guidelines138.1K
- Vercel Composition Patterns
- Vercel React Native Skills
- Vercel React View Transitions
- Vercel React Best Practices929.5K
- Web Design Guidelines901.2K
- Vercel Composition Patterns471.4K
- Vercel React Native Skills288.9K
- Deploy To Vercel204.1K
Similar to Vercel React View Transitions
More Frontend & UI Codevercel-react-view-transitionsvercel-labs/agent-skills35.1K starsGuide for native React view transitions using <ViewTransition>, transition types, and CSS pseudo-elements, with Next.js support.
view-transitionspatternsdev/skills718 installsTeaches the View Transitions API to animate DOM changes and page navigations without custom animation code.
page-transitionsdylantarre/animation-principles777 installsAnimation patterns for route changes, modals, and shared-element transitions, mapped to Disney's 12 principles.
barba-jsfreshtechbro/claudedesignskills2.7K installsBarba.js page transition library that makes multi-page sites feel like SPAs with GSAP-driven animations.
animatedelphi-ai/animate-skill4.1K installsAnimation patterns and easing guidance for Next.js and React, covering CSS and Framer Motion work.