VIS-006 Swap movement for a fade or no motion when the person asks for reduced motion
- Level
- Rule
- Verdict
- Unanimous (3 of 3)
- Status
- proposed, version 1.0.0
Rule
When the person's device or browser asks for reduced motion, replace movement across the screen, such as sliding, zooming, scaling, parallax and bouncing, with a short fade or an instant change. Stop motion that only decorates and show its final state. Keep motion that is essential.
Examples
Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.
Do: The panel fades in place when motion is reduced
Simulated in this example.
Orders
48 orders, last 30 days.
Filters
Status: shipped
Region: north
Don't: A panel that slides and zooms whatever the setting
Simulated in this example.
Orders
48 orders, last 30 days.
Filters
Status: shipped
Region: north
Do: A rolling number shows its end state at once
Simulated in this example.
Raised this month
£1,248
Don't: A card that waits for an animation that is off
Simulated in this example.
Order summary
3 items, delivery on 14 March.
Why
For some people, things that slide, zoom or drift on a screen bring on dizziness, nausea or a migraine that can last the rest of the day. They tell their system once, with a setting such as Reduce Motion on Apple devices or the animation switch in Windows and Android, and the browser passes that on to every page as prefers-reduced-motion: reduce. A page that ignores it makes them pay for its effects. Asking for less motion is not asking for none: a fade in place does not move anything across the view, and it still shows that something changed, which a hard cut can hide. No Level AA criterion requires this, so the rule rests on the judges. WCAG 2.2, 2.3.3 Animation from Interactions asks for it at Level AAA. That is a further aim, not a requirement here. A control that lets everyone pause moving content is VIS-005, and keeping meaning when motion goes is VIS-007.
Do
- Put one rule in the base stylesheet under
@media (prefers-reduced-motion: reduce)that turns off movement and keeps opacity. Withtw-animate-css, reset its enter and exit variables rather than settingtransform: noneoranimation: none, which would also stop transforms the layout needs or remove the fades:--tw-enter-translate-x,--tw-enter-translate-yand--tw-enter-rotateto0,--tw-enter-scaleto1, and the same for the--tw-exit-*set. shadcn'sDialog,PopoverandDropdownMenuthen fade in place, and aSheetfades in instead of sliding the width of the screen. - In your own components, pair every movement class from
tw-animate-cssortailwindcss-animatewith a reduced form, for exampleanimate-in fade-in motion-safe:slide-in-from-bottom-4, so the panel fades in place when the setting is on. - With framer-motion or Motion, wrap the app in
<MotionConfig reducedMotion="user">. It then drops transform and layout animation and keeps fades and colour changes. UseuseReducedMotion()where you build your own variants, such as anAnimatePresencepage transition that slides in withinitial={{ x: 300 }}. - Turn off parallax made with
useScrollanduseTransform, and slide-ups onwhileInView. The content is simply in place. - Stop decorative loops, floating cards, animated gradients and digits that roll up to a number, and show the end state at once.
- Our own reading, since no judge names it: make scrolling instant under reduced motion. Write
motion-safe:scroll-smoothinstead ofscroll-smooth, and passbehavior: "auto"toscrollIntoViewwhen the setting is on. - Read the setting with a listener, not once on mount, so a change takes effect without a reload. On the server the setting is unknown, so start from the reduced form or from CSS, not from a guess in script.
- End every reduced animation on its final, visible state. A card that waits at
opacity-0for a keyframe must still appear when the keyframe is off. - Keep essential motion, in a calmer form if you can. A loader still shows that work goes on, as STA-001 asks; a slower spin or a static bar with "Loading invoices" is fine. A video the person chose to play still plays.
- Check that a
Dialogstill closes and leaves the page when its exit animation is cut, and that focus moves as DLG-006 asks without waiting for any animation.
Don't
- Use
animate-in slide-in-from-right zoom-in-95in a custom panel with nomotion-reduce:ormotion-safe:variant. - Leave
MotionConfig reducedMotion="user"out, so everymotion.divin the app slides and springs whatever the person has set. - Set
scroll-smoothonhtmland smooth-scroll to every anchor for everyone. - Paste a snippet that sets every duration to almost zero, so the fades the setting allows go too and content jumps.
- Hide content with
opacity-0until an animation that is now off reveals it, so it never appears. - Treat the setting as the pause control for content that moves by itself. That control is VIS-005, for everyone.
Exceptions
- Motion the person drives. Content that moves because the person scrolls, or a card that follows their finger or pointer in a drag, is their own movement and stays. Motion added on top of scrolling, such as parallax, is not.
- Essential motion. Motion that is the content itself, such as a video the person started or an animation being edited, stays.
- A product's own switch. A motion setting inside the product, on top of the system one, is welcome but not required by this rule.
Verdict
Unanimous (3 of 3). Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work
| Source | Role | Stance | Page |
|---|---|---|---|
| WCAG 2.2 | Law | – No criterion applies | |
| Material Design | Judge | Supports | Transitions: applying transitions Carousel: accessibility |
| Apple Human Interface Guidelines | Judge | Supports | Accessibility Motion |
| Carbon Design System | Judge | Supports | Motion: overview |
| GOV.UK Design System | Expert witness | No position | |
| Nielsen Norman Group | Expert witness | Supports | Executing UX Animations: Duration and Motion Characteristics, by Page Laubheimer What Parallax Lacks, by Katie Sherwin |
Each stance links to the page it rests on, read on the date in the source register. This page never repeats what a source says; read the source itself.
History
- Version 1.0.0, : First version.
Last checked against the other rules for conflicts on .
More in Colour and motion: 11 rules and 0 guidelines · All rules
Justified is an independent project. It is not affiliated with, sponsored or endorsed by the organisations whose guidance it cites. Read the full statement.
Apple is a trademark of Apple Inc., registered in the U.S. and other countries and regions.