Skip to content
vercel-labs avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers <ViewTransition> placement, the enter, exit, update, and share triggers, and transition types set through addTransitionType
  • Includes implementation steps in references/implementation.md and ready-to-use CSS in references/css-recipes.md for 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 -y

Installs 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:

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

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

Similar to Vercel React View Transitions

More Frontend & UI Code