vercel-react-view-transitions

Implement React UI transitions with the View Transition API and CSS classes.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/brunocentanaro/carpinteria --skill vercel-react-view-transitions-brunocentanaro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-view-transitions
Source: https://github.com/brunocentanaro/carpinteria/tree/main/.claude/skills/vercel-react-view-transitions
Command: npx skills add https://github.com/brunocentanaro/carpinteria --skill vercel-react-view-transitions-brunocentanaro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide for implementing native-like UI transitions in React using the View Transition API, covering how to animate with <ViewTransition>, use addTransitionType, CSS view-transition classes, and accessibility considerations.

Core Features & Use Cases

  • Unified API: Use <ViewTransition> to declare triggers (enter/exit/update/share) and rely on browser support with graceful degradation.
  • End-to-end patterns: Implement page transitions, route changes, shared element morphs, list reorders, and directional navigation across Next.js apps.
  • Guided setup: Ready-to-use CSS recipes and explicit steps for auditing, isolating persistent elements, and composing transitions.

Quick Start

Wrap your pages or components with ViewTransition wrappers and trigger animations using startTransition or Suspense to see native-like transitions.

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 implement native-like page transitions in React?

Implement native-like page transitions in React by wrapping components with the <ViewTransition> wrapper. It declares triggers like enter, exit, and update, relying on browser support for the View Transition API with graceful degradation for older browsers.

Does the View Transition API work with Next.js route changes?

Yes, the View Transition API works with Next.js route changes. This Skill provides end-to-end patterns for implementing directional navigation and shared element morphs specifically tailored for Next.js applications.

How do I animate shared elements when reordering a list in React?

Animate shared elements when reordering a list in React by using the <ViewTransition> component to declare share triggers. This approach handles list reorders and shared element morphs natively without external animation libraries.

How do I use addTransitionType and CSS classes for view transitions?

Use addTransitionType alongside CSS view-transition classes to define and isolate persistent elements during animations. The guide provides ready-to-use CSS recipes and explicit steps for auditing and composing these transition styles.

Are there accessibility requirements for React view transitions?

Yes, there are accessibility requirements for React view transitions. The implementation guide documents specific accessibility considerations to ensure users relying on assistive technologies are not negatively impacted by visual morphs and route changes.

What are the limitations of using the View Transition API in React?

The primary limitation of the View Transition API in React is its dependency on native browser support. The implementation addresses this by providing graceful degradation, ensuring applications remain functional where the API is unsupported.