vercel-react-view-transitions

Implements React View Transition animations for route changes, shared elements, and Suspense reveals.

Updated Sep 17, 2026
One-click install
npx skills add https://github.com/juanjaragavi/utilities-manager --skill vercel-react-view-transitions-juanjaragavi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vercel-react-view-transitions
Source: https://github.com/juanjaragavi/utilities-manager/tree/main/.agents/skills/vercel-react-view-transitions
Command: npx skills add https://github.com/juanjaragavi/utilities-manager --skill vercel-react-view-transitions-juanjaragavi

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 error-prone: transitions silently fail, shared element morphs never fire, and Suspense reveals flicker. This Skill provides a structured workflow for implementing the React View Transition API correctly, with production-tested patterns and debugging guidance. ## Core Features & Use Cases - Directional page transitions: Tag navigations with addTransitionType or transitionTypes on next/link to play forward/back slide animations that communicate spatial depth. - Shared element morphs: Pair named <ViewTransition> boundaries across routes so images, cards, and titles morph between list and detail views. - Suspense reveals and list identity: Animate skeleton-to-content reveals, list reordering, and layout displacement with correct enter/exit/update triggers. - Use Case: While building a Next.js photo gallery, use this Skill to audit navigation paths, add type-keyed directional slides between grid and detail pages, morph thumbnails into full-size images, and apply reduced-motion CSS for accessibility. ## Quick Start Ask the agent to add view transitions to your React or Next.js app, starting with an audit of all 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 type-keyed ViewTransition and tag navigations with transitionTypes on next/link or addTransitionType inside startTransition. The App Router bundles React canary internally, so ViewTransition works without installing react@canary or enabling experimental flags.

How do shared element transitions work in React?▼

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

Does ViewTransition work in stable React without Next.js?▼

No, ViewTransition is not in stable React. Outside Next.js you must install react@canary and react-dom@canary. Browser support requires Chromium 125+, Firefox 144+, or Safari 18.2+, with graceful degradation elsewhere.

Why is my view transition animation not firing?▼

Common causes include using regular setState instead of startTransition, setting default="none" without an explicit share or enter prop, wrapping the ViewTransition inside a DOM node which suppresses enter/exit, or navigating with router.back() which carries no transition types.

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 0s on all view-transition-old, view-transition-new, and view-transition-group pseudo-elements. The Skill's css-recipes reference provides the exact snippet.