Agent skill

Vercel React View Transitions Skill: Native UI Animation

The vercel-react-view-transitions skill teaches an AI coding agent to animate route changes, shared elements and lists with React's ViewTransition component and CSS, without a motion library.

Install
git clone https://github.com/vercel-labs/agent-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the vercel-react-view-transitions skill?

vercel-react-view-transitions is a skill in Vercel's agent-skills repository for animating with React's ViewTransition component. It covers page transitions, shared element morphs, list reorder, Suspense reveals and directional navigation, using the browser's native view transition API and plain CSS. Unsupported browsers skip the animation.

vercel-react-view-transitions is a skill in the vercel-labs/agent-skills repository, in the skills/react-view-transitions folder. It is a guide for animating between UI states with React's ViewTransition component, addTransitionType and the browser's CSS view transition pseudo-elements.

The model it teaches is simple: declare what animates with ViewTransition, trigger when with startTransition, useDeferredValue or Suspense, and control how with CSS classes. It tells the agent never to call startViewTransition itself.

The five animation patterns

  • Shared element: the same element going deeper, such as a thumbnail morphing into a detail image.
  • Suspense reveal: data has loaded.
  • List identity: the same items in a new arrangement, using a per-item key.
  • State change: something appeared or disappeared, using enter and exit.
  • Route change: page-level transitions between routes.

The skill says to implement every pattern that fits the app, in that order. Each ViewTransition must communicate a spatial relationship or continuity, and if you cannot say what it communicates, it should not be added.

Availability and browser support

  • In Next.js, do not install react@canary. The App Router already bundles React canary, so ViewTransition works out of the box.
  • Without Next.js, install react@canary and react-dom@canary, since ViewTransition is not in stable React.
  • Browser support: Chromium 125 and later, Firefox 144 and later, Safari 18.2 and later. Other browsers skip the animation.

Who the skill is for

Best for

  • React and Next.js apps that want route, list and shared element animation without a third-party animation library.
  • Agents that animate with the wrong trigger and wonder why nothing plays.
  • Teams adding directional back and forward navigation animations.

Not for

Use it with UiChemy

These transitions live in React code you ship yourself. To get an AI-built page into WordPress as something editable, UiChemy AI to WordPress imports it, and Composer edits it in Elementor or Gutenberg. Click Get Started on uichemy.com.