---
name: reduced-motion
description: Use when building or reviewing animations so they respect prefers-reduced-motion and never cause discomfort, while keeping the interface understandable.
---

# Reduced motion

Some 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:

```js
const 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.
