vercel-react-view-transitions

Implement native view transition animations in React and Next.js applications.

Updated Aug 22, 2026
One-click install
npx skills add https://github.com/MSC72m/DevForge --skill vercel-react-view-transitions-msc72m
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vercel-react-view-transitions
Source: https://github.com/MSC72m/DevForge/tree/main/skills/vercel-react-view-transitions
Command: npx skills add https://github.com/MSC72m/DevForge --skill vercel-react-view-transitions-msc72m

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Adding smooth, native-feeling animations between UI states in React is difficult without third-party animation libraries, and the View Transition API has subtle placement, naming, and timing rules that cause silent failures. ## Core Features & Use Cases - ViewTransition Component Guidance: Covers enter, exit, update, and share triggers, placement rules, and View Transition Classes for animating route changes, component mount/unmount, and list reordering. - Shared Element & Directional Transitions: Explains named shared-element morphs across views and type-keyed directional navigation animations using addTransitionType. - Next.js Integration & CSS Recipes: Provides App Router patterns (transitionTypes on next/link, loading.tsx boundaries) plus copy-paste CSS recipes for fades, slides, morphs, and reduced-motion support. - Use Case: When building a Next.js photo gallery, use this Skill to add directional slide transitions between list and detail pages, morph thumbnail images into full-size views, and animate Suspense skeleton reveals. ## Quick Start Ask the agent to add view transitions to your React or Next.js app, starting with an audit of links, Suspense boundaries, and shared visual elements.

Frequently Asked Questions about vercel-react-view-transitions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add page transition animations in Next.js?▼

Wrap each page component in a ViewTransition with type-keyed enter and exit props, and tag navigations using addTransitionType inside startTransition or the transitionTypes prop on next/link. Place the ViewTransition in page components, not layouts, since layouts persist across navigations.

How do shared element transitions work in React?▼

Give two ViewTransition components the same name prop on the source and target views; when one unmounts and the other mounts in the same transition, they morph together. Names must be globally unique, and the target must be rendered at navigation time for the pair to form.

Does ViewTransition require installing react@canary?▼

In Next.js the App Router bundles React canary internally, so ViewTransition works out of the box without installing canary. Outside Next.js you must install react@canary and react-dom@canary because ViewTransition is not in stable React.

Why is my view transition animation not firing?▼

Common causes include using regular setState instead of startTransition, setting default="none" without explicit trigger props, wrapping the ViewTransition in a DOM node which suppresses enter/exit, or navigating without the required transition type for type-keyed animations.

Which browsers support the View Transition API?▼

React's ViewTransition requires Chromium 125 or later, Firefox 144 or later, or Safari 18.2 or later, since React needs the v2 object form of startViewTransition. Unsupported browsers skip animations gracefully with no errors.

How do I handle reduced motion with view transitions?▼

Add a prefers-reduced-motion media query to your global stylesheet that sets animation-duration and animation-delay to zero on all view-transition pseudo-elements. The skill's css-recipes reference provides the exact reduced-motion CSS block to copy.