What does this skill do?

The UI Skill Animation System provides a consistent, production-ready system for implementing animations in React and Next.js, ensuring accessibility, compatibility with low-end devices, and optimal performance. It defines centralized motion tokens, enforces strict performance rules, and ensures that every animation guides attention, communicates state, or preserves spatial continuity.

Customer Service Guide
Implement animations during onboarding and key actions to guide the user's attention.
State Transitions
Communicate load, success, error, and status changes with consistent animation.
Spatial Continuity
Maintains consistency in layout and navigation changes across views.
Guaranteed Accessibility
It respects the "prefers-reduced-motion" setting and adapts animations for low-end devices.

Usage examples

🎬 Motion tokens
Create a centralized token file for duration, easing, and distance in my React project.
♿ Accessible FadeIn
Create a FadeIn component that respects the `prefers-reduced-motion` preference using `useReducedMotion` from motion/react.
🪟 Modal with AnimatePresence
Create an accessible modal using `AnimatePresence mode="wait"` and the correct ARIA roles.
📋 Staggered list
Implement a list with a 0.08-second "staggerChildren" animation using motion/react variants.

Features

Centralized movement tokens Define duration, easing, and distance in a single, reusable file for the entire project.
Optimized Performance Animate only transform and opacity. Avoid layout properties that cause reflow and CLS.
Built-in Accessibility It automatically respects `useReducedMotion` in JavaScript and `prefers-reduced-motion` in CSS/Tailwind.
Adaptation for the low-end market Combine `navigator.deviceMemory` and `navigator.hardwareConcurrency` to reduce execution times on devices with limited resources.
SSR Insurance Define an explicit `initial` and wrap components in `use client` for the Next.js App Router without hydration warnings.

Frequently asked questions

Use Motion (Motion/React) or Framer-Motion. It's important not to mix the two in the same project to avoid conflicts in the internal scheduler and in AnimatePresence.
Yes. The skill recommends wrapping the animated components in "use client" and defining an explicit `initial` to avoid hydration warnings in SSR.
Use `useReducedMotion` in JavaScript and `prefers-reduced-motion` in CSS/Tailwind to reduce or eliminate motion based on the user's preferences.
Yes. The skill combines `navigator.deviceMemory` and `navigator.hardwareConcurrency` to adjust durations and ensure performance on devices with limited resources.
UI Animation System — Accessible React Animations with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.