121downloads
React View Transition animations skill
Add React View Transition page and element animations. Work with transition types, route changes and shared elements while respecting motion preferences.
When it runs
Your agent reads this description from SKILL.md to decide when to load the skill:
Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.
What SKILL.md covers
- When to Animate
- Availability
- Implementation Workflow
- Core Concepts
- Styling with View Transition Classes
- Transition Types
- Shared Element Transitions
- Common Patterns
- How Multiple VTs Interact
- Next.js Integration
- Accessibility
- Reference Files
- Full Compiled Document
Files in the ZIP
Related skills
React component composition patterns skill
Refactor React components with composition, compound components and shared state. Replace growing boolean props with APIs that fit the actual component roles.
React and Next.js performance review skill
Review React and Next.js code for rendering, data fetching and bundle performance. Apply Vercel guidance to component and page implementation choices.
React Native and Expo performance patterns skill
Build React Native and Expo apps with guidance for lists, animations and native APIs. Review mobile component patterns and performance tradeoffs.