vercel-react-view-transitions

React View Transitions

React View Transitions is Vercel's agent skill for animating route changes, shared elements and list reorders with React's ViewTransition component, in Next.js and other React apps.

Checked by CookiesForAI on : license and last change of the skill re-read from GitHub; install tested on in Claude Code 2.1.286 and Codex CLI 0.160.0.

Written by

Install React View Transitions

Install this skill with the skills CLI

Terminal
npx skills add vercel-labs/agent-skills --skill vercel-react-view-transitions

Or install every Vercel skill at once

Terminal
npx skills add vercel-labs/agent-skills

Install tested

On , we ran npx skills add vercel-labs/agent-skills --skill vercel-react-view-transitions -a claude-code codex --copy -y (skills CLI 1.7.1) in an empty project. It copied 8 files into each agent's skill folder (.claude/skills/vercel-react-view-transitions and .agents/skills/vercel-react-view-transitions), and Claude Code 2.1.286 and Codex CLI 0.160.0 then listed vercel-react-view-transitions as an available skill.

Or paste this into your coding agent: Install the agent skill vercel-react-view-transitions from github.com/vercel-labs/agent-skills. Checked by CookiesForAI on : license and last change of the skill re-read from GitHub; install tested on in Claude Code 2.1.286 and Codex CLI 0.160.0. A skill can include scripts that run on your computer, so read its source first.

What React View Transitions does

React View Transitions is Vercel's guide to animating between UI states with React's View Transition API, which uses the browser's own document.startViewTransition. It loads when you want page transitions, animated route changes, shared element morphs, enter and exit animations, list reorders or forward and back navigation animations, including in Next.js, without a third-party animation library.

React View Transitions sets an order: shared elements first, then Suspense reveals, list identity, state changes and route changes, and each animation has to communicate a spatial relationship. Directional slides are kept for list to detail navigation and ordered sequences, not tabs. It explains the common traps: enter and exit only fire when ViewTransition comes before any DOM node, only startTransition, useDeferredValue and Suspense trigger it, and router.back() carries no transition types.

React View Transitions also covers availability: the Next.js App Router already bundles the React canary build, other apps install react@canary, and unsupported browsers skip the animations. Five reference files hold a step-by-step implementation workflow that starts with an audit, CSS recipes including reduced motion styles, patterns, troubleshooting, and Next.js details such as transitionTypes on next/link.

When to use React View Transitions

  • You want a thumbnail to morph into the full image when someone opens a detail page.
  • You want route changes in Next.js to slide forward and back instead of cutting.
  • You added view transitions that do nothing and need to find out why.
  • You want list items to animate when they reorder, appear or disappear.

When to pick something else

  • Your app cannot use React canary: outside the Next.js App Router, ViewTransition needs react@canary.

Which agents React View Transitions works in

Vercel documents React View Transitions for any AI coding agent that reads Agent Skills, installed with the skills CLI. The open skills CLI also installs it into 78 agents, including Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode (we listed it with the CLI on ). See where each agent looks for skills.

We also list this company's other pages: Vercel product page and Vercel MCP server.

React View Transitions license

React View Transitions is published under MIT. The SKILL.md frontmatter says license: MIT. The vercel-labs/agent-skills repository has no LICENSE file and GitHub reports no license; its README ends with "License: MIT" (checked ). MIT lets you use, change and share the skill if you keep the copyright notice.

More from Vercel

Lists that include vercel-react-view-transitions