Animation skill · Foundations
Reduced motion
Keep animations comfortable for people who prefer less motion.
Give this skill to your AI agent
Run this in your project. Claude Code picks it up from .claude/skills; for other agents, paste the file into their rules.
mkdir -p .claude/skills/reduced-motion && curl -fsSL https://kitesmotion.com/skills/reduced-motion/SKILL.md -o .claude/skills/reduced-motion/SKILL.mdSome people get dizzy or distracted by motion. Every animated feature must have a reduced-motion version that keeps the meaning but removes large movement.
What to change when reduced motion is on
| Effect | Reduced version |
|---|---|
| Slides, zooms, parallax, page transitions | Cross-fade (opacity only, about 150ms) |
| Springs and bounces | Instant change or a short fade |
| Auto-playing loops, marquees, background video | Paused, with a play control |
| Scroll-linked animation | Static final state |
| Spinners and progress | Keep them; they show status |
Do not remove feedback entirely: colour changes, focus rings and state labels must still happen.
Web
css@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}Use the blanket rule only as a safety net. Prefer per-component fallbacks so things still fade in:
jsconst reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;In Framer Motion wrap the app in <MotionConfig reducedMotion="user"> and use useReducedMotion() for custom cases.
SwiftUI
Read @Environment(\.accessibilityReduceMotion) var reduceMotion and swap .spring(...) for .easeInOut(duration: 0.15) or nil, and matchedGeometryEffect moves for .opacity transitions.
React Native
Use useReducedMotion() from Reanimated and AccessibilityInfo.isReduceMotionEnabled().
Also check
- Nothing flashes more than three times per second.
- Auto-playing motion longer than five seconds can be paused.
- Videos and GIFs do not autoplay with sound.