page-transition-animation
Installation
SKILL.md
Page Transition Animation — Native & Framework Route Motion
Mandatory Pre-Flight Context Inspection
Before engineering route or page transitions, you MUST inspect:
- Target Framework & API (View Transitions API vs Framer Motion
AnimatePresence) AnimatePresenceKeying (Section 69) → Enforcekey={pathname}andmode="wait"to prevent double-page DOM stacking- Vertical Displacement Cap → Keep route movement under $12\text{px}$ to prevent visual scroll shifts
Architect smooth, seamless page and route transitions without layout jumps or frozen exit states.
Activation Boundaries
- Activate when: Operating in tasks requiring Page and route transition patterns using the native View Transitions API, Framer Motion AnimatePresence, and Next.js App Router exit animations..
- DO NOT activate when: The task falls strictly outside page-transition-animation domain or belongs to a different dedicated specialist.