Zum Inhalt springen
Kitbay
Skill

vercel-react-view-transitions

MITAktualisiert am 28. Okt. 202633.877GitHub-Sterne

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

Was der Skill vermittelt

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.

Funktionen

  • 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