VIS-005 Let people pause, stop or hide content that moves or updates by itself
- Level
- Rule
- Verdict
- Requirement
- Status
- proposed, version 1.0.0
Rule
When something starts by itself and shares the screen with other content, give a way to pause, stop or hide it if it moves, blinks or scrolls for more than five seconds. If it updates by itself, such as an auto-playing carousel, give that way, or a way to set how often, at any length. Essential motion is exempt.
Examples
Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.
Do: A visible button pauses the quotes
What customers say
“We moved our whole studio to it in an afternoon.”
Don't: Quotes rotate on a timer with nothing to press
What customers say
“We moved our whole studio to it in an afternoon.”
Do: A button holds the logo strip still
Trusted by small teams
- Harbour & Co
- Fennel
- Northlight
- Quillwork
- Tamarind
- Bramble Press
- Oakhurst
Don't: A logo strip that never stops
Trusted by small teams
- Harbour & Co
- Fennel
- Northlight
- Quillwork
- Tamarind
- Bramble Press
- Oakhurst
Why
Motion pulls the eye whether the person wants it to or not. A logo strip that never stops, a slide that changes while someone is still reading it, or a card that floats up and down beside a form makes it hard to read and hard to think, most of all for people with attention or reading difficulties and for people who use a screen magnifier, who may see little else. WCAG 2.2, 2.2.2 Pause, Stop, Hide requires the way out. It is Level A, so it sits inside AA. It has two parts. Moving, blinking and scrolling need a control only when all three hold: it starts by itself, it lasts more than five seconds and other content is on screen with it. Content that updates on its own needs a control however long it runs, or a way to set how often it updates. The criterion covers every part of the page, decoration included.
The Working Group's Understanding page for 2.2.2 counts motion that starts on hover, on focus or when scrolled into view as starting by itself; only a deliberate press does not. Its techniques let the person pause and resume from the same place, and list a scrolling strip with no pause as a failure (G4, F16). These are the Working Group's reading of the criterion, not its text. Reduced motion is a separate rule, VIS-006.
Do
- A pricing page has a shadcn
Carouselof customer quotes withplugins={[Autoplay({ delay: 5000 })]}fromembla-carousel-autoplay8, the version shadcn'sCarouseluses. Before the slides in reading order sits a button Pause quotes. Pressed, it calls the plugin'sstop(), its label becomes Play quotes, and the carousel stays still until the person presses it again. The label follows the plugin's state throughemblaApi.on("autoplay:stop")andemblaApi.on("autoplay:play"), so it is right also when a drag has stopped the autoplay. The button can be reached with Tab and shows focus (KBD-001). - Our own reading of the criterion, as the safest one: make the control a visible button that keeps its state.
stopOnMouseEnter,stopOnFocusInandstopOnInteractionare welcome as extras, but none is a control the person can find and see the state of, and withstopOnInteraction: falsethe first two start the motion again as soon as the pointer or focus leaves. TheCarouselPreviousandCarouselNextbuttons are not a pause either. - A logo wall under the hero runs as
animate-[marquee_40s_linear_infinite]. A small button Pause logos next to it setsanimation-play-state: paused, so the strip stops where it is and starts again from there. - A hero background
<video autoPlay muted loop playsInline>gets a visible button Pause video over its corner. Or it plays once, stops within five seconds and leaves its last frame. - A "New" badge with
animate-pulse [animation-iteration-count:2]pulses twice, for four seconds, and then stays still. That ends inside five seconds, so it needs no control.animate-pulsealone loops forever. - A framer-motion card that floats with
animate={{ y: [0, -8, 0] }}andtransition={{ repeat: Infinity }}either stops within five seconds or is covered by the page's motion control. - A dashboard whose numbers refresh every 30 seconds has a switch Update automatically, on by default, with its label visible beside it (FRM-001). Turned off, the numbers hold until the person presses Refresh now. A select for how often it updates also meets the criterion.
- One control for the whole page that stops every moving part is allowed, and is kinder than many small ones when a page has several. Our own advice: put it early, near the top, so a keyboard user meets it before the motion.
- Hiding passes too: a Close on an animated promotion banner that removes it meets the criterion.
- Our own advice, beyond the requirement: do not auto-advance a carousel at all. Let the slides change only when the person presses an arrow or swipes. Then this rule does not apply, and people can read each slide for as long as they need.
Don't
- Add Embla
Autoplayto a shadcnCarouseland rely onstopOnMouseEnterandstopOnFocusIn. Someone reading from a distance, using a magnifier or not yet at the carousel has nothing to press, and nothing shows that it can be stopped. - Rotate testimonials, tips or headlines on a
setIntervalwith no pause. - Run an animated gradient (
animate-gradientonbg-[length:200%_200%]), a particle background or ananimate-spinblob behind the content forever, on the grounds that it is only decoration. - Start a looping marquee with
whileInViewandrepeat: Infinitywhen it scrolls into view, with no control. Scrolling it into view does not count as asking for it. - Pause the motion only while it has focus and start it again as soon as focus leaves.
- Our own reading: do not treat
motion-reduce:animate-noneas the control. Many people who are bothered by motion never turn that setting on. Honour it as VIS-006 asks, and give the control as well.
Exceptions
- Short motion. Moving, blinking or scrolling that starts by itself and stops within five seconds needs no control. This allowance does not cover content that updates on a timer.
- Started by the person. A video the person pressed play on, a carousel that moves only when its arrows are pressed or it is swiped, and an update the person asked for with Refresh now do not start by themselves.
- Essential motion. Motion is essential when taking it away would change what the content is, such as an animation the person is editing in an animation tool. Decoration is never essential.
- Nothing else on screen. Motion that is the only thing on screen, with nothing else to read or use, is outside the criterion. In a shadcn app that is rare beyond the very first load.
- Loaders. Spinners, progress bars and skeletons are STA-001's, including how 2.2.2 applies to them. A spinner that starts because the person pressed a button does not start by itself.
- Flashing. Rapid flashing, above three flashes within one second, is a matter for WCAG 2.2, 2.3.1 Three Flashes or Below Threshold. A pause button does not make such flashing acceptable, because harm can come before anyone presses it.
Verdict
Requirement. Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work
| Source | Role | Stance | Page |
|---|---|---|---|
| WCAG 2.2 | Law | Requires | 2.2.2 Pause, Stop, Hide |
| Material Design | Judge | No position | |
| Apple Human Interface Guidelines | Judge | Supports | Accessibility Motion |
| Carbon Design System | Judge | Supports | Accessibility: overview Motion: overview |
| GOV.UK Design System | Expert witness | No position | |
| Nielsen Norman Group | Expert witness | Supports | Auto-Forwarding Carousels and Accordions Annoy Users and Reduce Visibility, by Jakob Nielsen Executing UX Animations: Duration and Motion Characteristics, 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.