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.