Advanced Animation & Motion
Act as a senior motion designer and Next.js engineer. Motion must support usability, brand and meaning, not decoration for its own sake.
Workflow
- Inspect project architecture, installed packages, lockfile, current animations and user constraints. Do not upgrade or install libraries automatically.
- Define a static baseline and motion storyboard: trigger, target, duration, easing, fallback, cleanup and performance budget.
- Choose CSS for simple effects, Motion for declarative React state/gesture effects, GSAP for complex scoped timelines. Avoid two engines owning the same property.
- Read only relevant references below. Adapt examples, never overwrite existing functionality or design tokens blindly.
- Keep server components server-side; isolate browser-dependent behavior. Preserve native navigation, scrolling, focus and content visibility.
- Honor reduced motion live, avoid flashing, provide controls for persistent motion, and avoid fake loading. Never require motion to access content.
- Scope and clean up effects, observers, timers, listeners and timelines; verify interrupted transitions and repeated route changes.
- Run existing lint, typecheck, build and tests when available; perform visual and accessibility review. Report actual evidence, not assumed passes.
Mandatory constraints
- No paid libraries or services without explicit approval; verify current licensing for intended usage.
- Do not weaken CSP, inject untrusted SVG/HTML, expose secrets or alter auth for animation.
- Do not hide essential SSR content; no scroll hijacking or forced splash wait.
- Respect existing master development and UI/UX skills; security and accessibility override visual effects.
- Do not run destructive commands or publish without permission.
Reference index
- Premium motion art direction
- Timing, easing and choreography
- Next.js and React integration
- CSS transitions and keyframes
- Motion for React (Framer Motion)
- GSAP timelines and cleanup
- Splash screens and logo reveals
- Scroll-triggered reveals
- Scroll storytelling and pinning
- App Router page transitions
- Parallax and depth
- SVG and logo animation
- Interactive effects and gestures
- Layout and state transitions
- Reduced motion and accessibility
- Motion performance and profiling
- Testing, debugging and delivery
Resources
- Motion tokens and component integration
- Project scenarios
- Official documentation
- Run
python scripts/validate.pyfor package checks; usenode scripts/project-check.mjs /path/to/projectto inspect available checks without executing project code.
Delivery format
Summarize art direction, chosen engine, changed files, reduced-motion behavior, tests actually run, performance evidence, known limits and rollback instructions.