vercel-react-view-transitions

Implement view transitions in React and Next.js apps with CSS recipes.

1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/dashkan/pivox --skill vercel-react-view-transitions-dashkan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-view-transitions
Source: https://github.com/dashkan/pivox/tree/main/.agents/skills/vercel-react-view-transitions
Command: npx skills add https://github.com/dashkan/pivox --skill vercel-react-view-transitions-dashkan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you implement smooth, native-feeling UI motion in React apps using the browser’s View Transition API instead of ad-hoc animation logic.

Core Features & Use Cases

  • Page transitions with <ViewTransition>: Animate enter/exit during user-triggered updates (route changes, state changes, and Suspense reveals) with correct placement rules.
  • Directional navigation via addTransitionType: Create forward/back “depth” motion by tagging transitions and mapping types to CSS classes.
  • Shared element transitions: Morph the same visual element across source and target views using named transitions (name, share) with practical rules for uniqueness and composition.
  • Next.js integration: Enable experimental.viewTransition and use transitionTypes on next/link, plus App Router patterns for loading.tsx and same-route segment transitions.
  • Copy-paste CSS animation recipes + accessibility: Apply ready-made CSS pseudo-element recipes (fade/slide/scale/morph/text-morph) and reduced-motion behavior.

Quick Start

Ask the skill to help you implement view transitions for your Next.js app by enabling experimental.viewTransition, adding directional page transitions in each page component, wiring link navigations with transitionTypes, and copying the provided CSS recipes into your global stylesheet.

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 transitions in Next.js using the View Transition API?

Next.js page transitions use the View Transition API by enabling experimental.viewTransition, wrapping route updates in React's ViewTransition component, and mapping transition types to CSS pseudo-element classes for smooth enter and exit animations.

What are shared element transitions in React and how do they work?

Shared element transitions morph the same visual element across source and target views by assigning matching name and share properties to React ViewTransition components, allowing the browser to animate the visual transform natively.

Can I animate React Suspense data reveals with view transitions?

Yes, React view transitions can animate Suspense data reveals by wrapping the state update in startTransition and using the ViewTransition component to smoothly fade or slide in the resolved UI content.

How do I create directional forward and back navigation animations in React?

Directional navigation animations use the addTransitionType function to tag forward and back transitions, which are then mapped to specific CSS pseudo-element classes to create depth-based motion for route changes.

Do view transitions support reduced-motion accessibility preferences?

Yes, view transitions support reduced-motion accessibility by applying CSS pseudo-element recipes that include specific safeguards, disabling or simplifying animations for users who prefer reduced motion.

What is the best way to animate list reorders in React without ad-hoc animation logic?

List reorder animations are best handled using React's ViewTransition component with per-item keys, leveraging the browser's native View Transition API to smoothly animate items to their new positions without custom animation logic.