Skip to content
Kitbay
Skill

vercel-react-view-transitions

MITUpdated on Oct 28, 202633,877GitHub stars

This Vercel Labs skill explains how to animate interface changes with React's View Transition support, built on the browser's startViewTransition.

What the skill teaches

This Vercel Labs skill explains how to animate interface changes with React's View Transition support, built on the browser's startViewTransition. It covers the ViewTransition component, what triggers an animation, where components must be placed, styling through CSS classes and view-transition pseudo-elements, transition types, shared element transitions, enter and exit, list reordering, Suspense fallbacks, Next.js integration and accessibility. It also asks the agent to justify each animation by what it communicates to the user. It concerns React code and does not use the Vercel platform.

Capabilities

  • Add page and route transitions with ViewTransition
  • Create shared element animations between views
  • Animate list reordering and enter or exit of components
  • Wire transition types into Next.js navigation