Accessibility

a11y/pause-auto-motion

Anything that moves, blinks, scrolls or updates by itself for more than 5 seconds has a visible pause or stop control.

seriousmanualWCAG 2.2.2 · Afe-a11y-media

Why

Looping background video, auto-advancing carousels, tickers and animated illustrations pull attention away from the text. People with attention or reading difficulties cannot focus, and screen magnifier users lose content that moves out of view.

Fix

Give every looping or auto-advancing element a visible pause button that keeps its state, pause carousels on hover and focus (fe-a11y-carousel-toast), and start nothing by default when prefers-reduced-motion: reduce matches. Animated GIFs longer than 5 seconds become <video> with controls.

Examples

<!-- good -->
<video id="hero-video" autoplay muted loop playsinline src="hero.mp4"></video>
<button type="button" aria-pressed="false" id="pause-hero">Pause background video</button>

Sources

Facts

Id
a11y/pause-auto-motion
Severity
serious
Check
manual a person reviews it; the report lists it as a checklist
Applies to
page
WCAG 2.2
2.2.2, level A
Same problem in
axe-core marquee, axe-core blink
Taught by the skill
fe-a11y-media Media, motion and flashing
Since version
0.1.0

Rule file on GitHub

Read it in the terminal

npx github:dawidolko/frontend-skills explain a11y/pause-auto-motion