VIS-007 Never let motion be the only sign of what happened
- Level
- Rule
- Verdict
- Unanimous (2 of 2)
- Status
- proposed, version 1.0.0
Rule
Never let an animation be the only way the interface says something. Whatever it means, such as an error, a change, a new item or that something is live, is also shown in text, an icon or a state that stays on screen when the motion has ended or is turned off.
Examples
Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.
Do: A wrong password shakes and the error text stays
Simulated in this example.
Don't: A shake with no message
Simulated in this example.
Do: The cart bounces, the count and a message say why
Simulated in this example.
Linen shirt, £45.00
Don't: A bounce is the only sign that an item was added
Simulated in this example.
Linen shirt, £45.00
Why
Motion is easy to miss. A screen reader does not report it, a person who looked away for a second never sees it, and once it ends it is gone. When reduced motion is on, VIS-006 takes it away on purpose. If the shake was the only sign of a wrong password, or the bounce the only sign that something reached the cart, those people are left guessing. Motion is good at drawing the eye to a change; the change itself has to be there to find. No WCAG criterion says that motion must not be the only cue, and this rule does not claim one. Two criteria cover parts of it. Under WCAG 2.2, 1.1.1 Non-text Content, an animation that carries information needs a text alternative with the same purpose. Under 4.1.3 Status Messages, a change shown without moving focus must reach assistive technology, as FBK-004 describes. The idea mirrors VIS-003a, where colour must not be the only means of showing something.
Do
- A sign-in form shakes its
Cardwhen the password is wrong. The error text "The email or password is not right. Check both and try again." also shows at the field withFormMessage, as FRM-002a and TXT-001a ask, and stays after the shake ends. - The cart icon in a shop's header bounces when an item is added. Its badge changes from 2 to 3 and stays at 3, and a status message "Added to cart" is announced (FBK-004).
- A new row in an orders table flashes and fades. It also gets a "New"
Badgethat stays until the person leaves the page, so the row can still be found once the flash is over. - A file flies into the Archive folder in the sidebar. The folder's count goes up, the file is gone from the list, and the status message "Moved to Archive" is announced.
- A pulsing dot in a meeting's header has the word Live beside it, and Recording when that is what it means.
- Each step of a setup wizard slides in from the side. A step indicator "Step 2 of 4" above the form says where the person is, so the slide is not the only sign of going forward or back.
- After a pointer drag in a reorderable list, the list's new order and the mark on the landing place (ACT-008) are the lasting form. A keyboard move is also announced in words, as ACT-007b asks.
- An item removed with an
AnimatePresenceexit animation is gone from the list, and a status message names what was removed. - A highlight that should show under reduced motion is a class that stays, such as a tinted background, with only its fading in left to the animation.
Don't
- Shake an
Inputwith a customanimate-shakekeyframe orx: [0, -8, 8, 0]when its value is wrong, and leaveFormMessageout. - Replace the toast with a check mark that draws itself in a Lottie animation, with no text and no status message.
- Use
animate-pingon a dot as the only sign that a colleague is online. - Mark the row that just changed only with a keyframe that fades from yellow, so a blanket reduced-motion rule (
animation: none) leaves no mark at all.
Exceptions
- Polish on what is already said. Motion that adds nothing new, such as a dialog that fades in with its title, needs nothing more.
- Motion that follows the hand. In a drag, the motion is feedback to the person's own movement. Where the item ends up is the lasting form.
- Progress. A loader whose progress is also given as a value or in text is fine. An indeterminate one needs a name, as STA-001 asks.
- Content shown on hover. Content that animates in on hover or focus follows TXT-002a and TXT-002b.
Verdict
Unanimous (2 of 2). Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work
| Source | Role | Stance | Page |
|---|---|---|---|
| WCAG 2.2 | Law | Supports | 1.1.1 Non-text Content |
| WCAG 2.2 | Law | Supports | 4.1.3 Status Messages |
| Material Design | Judge | No position | |
| Apple Human Interface Guidelines | Judge | Supports | Motion |
| Carbon Design System | Judge | Supports | Motion: overview |
| GOV.UK Design System | Expert witness | No position | |
| Nielsen Norman Group | Expert witness | Supports | The Role of Animation and Motion in UX, by Page Laubheimer |
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.