React View Transitions Skill

An agent skill for implementing smooth, native-feeling animations using React's View Transition API.

What This Skill Covers

  • <ViewTransition> component — animation triggers (enter, exit, update, share), placement rules, View Transition Classes
  • addTransitionType — tagging transitions for directional or context-specific animations
  • Shared element transitions — morphing elements across different views
  • View Transition Events — imperative JavaScript animations via the Web Animations API
  • CSS pseudo-elements::view-transition-old, ::view-transition-new, ::view-transition-group
  • Next.js integrationtransitionTypes on next/link and useRouter, App Router patterns
  • Accessibilityprefers-reduced-motion handling
  • Ready-to-use CSS recipes — fade, slide, scale, directional navigation

Skill Structure

react-view-transitions/
├── SKILL.md                      # Core skill (always loaded)
├── AGENTS.md                     # Full compiled document (all references expanded)
└── references/
    ├── implementation.md         # Step-by-step implementation workflow
    ├── patterns.md               # Real-world patterns and events API
    ├── troubleshooting.md        # Symptom-driven debugging
    ├── nextjs.md                 # Next.js-specific patterns
    └── css-recipes.md            # Copy-paste CSS animations

Installation

Install via skills.sh:

npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-react-view-transitions

Resources

S
Description
Guide for implementing smooth, native-feeling animations using React's View Transition API (` component, addTransitionType`, and CSS view…
https://github.com/vercel-labs/agent-skills
Readme 69 KiB
Languages
Markdown 100%