How do I make animation and motion on my website accessible?
To make motion on your website accessible, do three things. Give visitors a way to pause, stop or hide anything that moves or updates automatically, such as an auto-rotating carousel or a scrolling announcement bar; that is WCAG 2.2.2 Pause, Stop, Hide (level A).1 Make sure nothing flashes more than three times in any one second; that is 2.3.1 Three Flashes or Below Threshold (level A).2 And respect the reduce motion setting in visitors' operating systems, using the CSS prefers-reduced-motion media query to switch off animation that is not essential.4 The first two are requirements; the third is good practice that costs very little.
Who motion affects
- People who are easily distracted. W3C says certain groups, particularly people with attention deficit disorders, find blinking content distracting, and moving content can make it hard to read the rest of the page.1
- People with vestibular disorders. W3C notes that unnecessary motion can cause dizziness, nausea and headaches, and in severe cases may need bed rest to recover.3 MDN names scaling or panning large objects as typical triggers.4
- People with photosensitive epilepsy. Flashing content can trigger seizures. 2.3.1 exists so that people can use the whole site without that risk.2
- Screen reader and keyboard users, for whom a carousel that changes while they are reading it, or moves focus with it, is confusing.
2.2.2 Pause, Stop, Hide
The criterion has two parts.1
| Content | Applies when it | You must provide | Store examples |
|---|---|---|---|
| Moving, blinking or scrolling | Starts automatically, lasts more than five seconds and is shown alongside other content | A way to pause, stop or hide it | Hero carousels, scrolling announcement bars, looping product videos, animated GIFs |
| Auto-updating | Starts automatically and is shown alongside other content | A way to pause, stop or hide it, or control how often it updates | "Someone in London just bought..." pop-ups, live stock counters, countdown banners |
The exception is motion that is essential to an activity.1 A decorative carousel is not essential. W3C also notes that this criterion applies to all content on the page, because moving content that fails it can interfere with using the whole page.1
What a good pause control looks like
- Visible and near the content. A pause button on the carousel itself, not hidden in a settings menu.
- A real button with a name that changes with its state, such as "Pause slideshow" and "Play slideshow".
- Reachable before the motion in the keyboard order, so people can stop it before they have to read past it.
- Not tied to hover or focus. W3C says pausing must not tie up the user or focus so the page cannot be used, and an animation that only stops while it has focus does not count.1 Pausing on hover is a nice extra, not a pause control.
W3C's techniques include providing a control that stops moving content (G186), letting content be paused and restarted where it left off (G4), and stopping animated GIFs within five seconds (G152).1 The simplest fix is often not to auto-play at all: a carousel that only moves when the visitor presses "Next" has nothing to pause.
2.3.1 Three flashes
Web pages must not contain anything that flashes more than three times in any one second, unless the flashing is below the general flash and red flash thresholds.2 The thresholds are technical: a general flash is a pair of opposing changes in brightness of 10% or more of the maximum, and red flashes involving saturated red are counted separately. Small flashing areas, roughly a quarter of a 10 degree field of view, can also pass.2 Like 2.2.2, this applies to all content on the page.2
In practice: avoid strobing sale banners, rapidly flashing "LIVE" badges, fast flickering transitions in product videos and flashing GIFs. W3C points to the Trace Center's Photosensitive Epilepsy Analysis Tool (PEAT) as a related resource for checking video, without endorsing it.2 If you are not sure, do not flash.
Respect the reduce motion setting
Windows, macOS, iOS and Android all let people ask for less motion. MDN lists, for example, Settings, Accessibility, Visual Effects, Animation Effects on Windows 11, and Settings, Accessibility, Motion on iOS.4 Browsers pass that choice to your site through the prefers-reduced-motion media query, whose value is reduce when the setting is on.4
A simple pattern is to keep animation for everyone else and switch it off or tone it down for visitors who asked:
@media (prefers-reduced-motion: reduce) {
.carousel { scroll-behavior: auto; }
.reveal-on-scroll, .parallax { animation: none; transform: none; }
}The class names are examples; use your theme's. Reducing motion does not have to mean removing it: MDN describes the setting as asking for motion to be removed, reduced or replaced, and its own example swaps a pulsing scale animation for a gentler fade.4 You can also read the setting in JavaScript to stop a carousel from auto-playing at all for these visitors. W3C lists both approaches, techniques C39 (CSS) and SCR40 (JavaScript), as ways to meet 2.3.3 Animation from Interactions.3 That criterion is level AAA, so it is not part of the usual AA target,5 but parallax scrolling and scroll-triggered effects, which W3C calls out as often non-essential, are exactly what it is about.3
Shopify and WordPress
- Theme settings. Many themes include slideshow, auto-rotate, marquee and scroll animation settings. Turn off auto-rotate where you can, or make sure there is a visible pause button.
- Apps and plugins. Sales notification pop-ups, countdown timers and animated badges usually come from apps or plugins. Each one that updates by itself needs a way to stop or hide it under 2.2.2.
- Video backgrounds. A looping hero video is moving content. Provide a pause button, or show a still image instead.
- Theme code. Check whether your theme's CSS uses
prefers-reduced-motion. If not, a developer can add it; Website Mechanic can propose fixes like this as a pull request or a fixed WordPress theme.
How to check motion on your site
- Load your home page and wait. Note everything that moves, scrolls or updates by itself. Does each have a pause, stop or hide control that works with a keyboard?
- Watch for flashing in banners, badges and videos.
- Turn on your device's reduce motion setting and reload. Do parallax, zoom and scroll effects calm down?
- Run an automated check for the problems a tool can see. Jralo's free check tests your homepage and up to five linked pages against WCAG 2.2 A and AA, and helps you understand which countries' accessibility laws may be relevant, with a link to a guide for each (general information, not legal advice).
Automated tools find many problems, not all. Whether a carousel can be paused, or whether a video flashes too fast, usually needs a person to look.
What else do people ask?
Does an auto-rotating carousel fail WCAG?
Not if visitors can pause or stop it. WCAG 2.2.2 applies to moving content that starts automatically, lasts more than five seconds and sits alongside other content, and it requires a way to pause, stop or hide it. A visible pause button that works with a keyboard is the usual fix.
Is prefers-reduced-motion required by WCAG?
Not at level AA. W3C lists the prefers-reduced-motion query (technique C39) as a way to meet 2.3.3 Animation from Interactions, which is level AAA. It is still worth doing because it costs little and helps people with vestibular disorders, for whom W3C says motion can cause dizziness, nausea and headaches.
Do animated GIFs count?
Yes. An animated GIF that loops for more than five seconds alongside other content is moving content under 2.2.2. W3C's techniques include stopping animated GIFs within five seconds (G152). A GIF that flashes more than three times a second can also fail 2.3.1.
Check your site now
Jralo's free check tests your homepage and up to five pages for accessibility (WCAG 2.2 A and AA) and website QA problems, and tells you which countries' accessibility laws are likely relevant to you. No sign-up.
Run the free checkWhere do these facts come from?
Every number and legal statement in this post links to one of these sources, read on 13 October 2026.
- W3C WAI: Understanding Success Criterion 2.2.2 Pause, Stop, Hide
- W3C WAI: Understanding Success Criterion 2.3.1 Three Flashes or Below Threshold
- W3C WAI: Understanding Success Criterion 2.3.3 Animation from Interactions
- MDN Web Docs: prefers-reduced-motion
- W3C: Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation, version of 12 December 2024
More questions
- EN 301 549 explained: the European accessibility standard and WCAG
- Jralo MCP real-time alerts: website monitoring for your agent
- Why are so many website accessibility lawsuits filed in New York?
- Shopify accessibility statement: free feedback wording
- California's Unruh Act and websites: what store owners should know
- PHP2Shell: is your website affected, and what to do
- Black Friday checkout accessibility: a one-week checklist
- Israel's website accessibility regulations explained
- WCAG 1.4.13 Content on Hover or Focus: a Shopify test
- India's RPwD Act 2016 and websites: what businesses need to know
- France: accessibility rules for online shops (EAA and RGAA)
- Germany's BFSG: what it means for online shops
- WCAG 1.4.12 Text Spacing: how to test a Shopify store
- Does Australia's Disability Discrimination Act apply to websites?
- AODA website requirements checklist for Ontario businesses
- Skip links on a Shopify theme: what WCAG 2.4.1 requires
- Does the UK Equality Act 2010 apply to my website?
- What makes a good page title for product, collection and checkout pages?
- Why do I need to set the page language for screen readers?
- How do I make log-in and CAPTCHA accessible under WCAG 3.3.8?
- How do I make data tables and size charts accessible?
- How do I write accessible form error messages?
- How do I make product search, filters and sorting accessible?
- PDFs on your website: when to use HTML instead, and how to make PDFs accessible
- Does my website still work when visitors zoom in? Resize and reflow explained
- How big do buttons and links need to be under WCAG 2.5.8?
- How do I make a cookie consent banner accessible?
- How do I make pop-ups and modal dialogs accessible?
- How do I write link text that makes sense out of context?
- Why does heading structure matter for screen reader users?
- Visible focus: why removing outlines hurts, and what WCAG 2.2 asks
- Accessible navigation and mega menus
- Accessible product image galleries, sliders and carousels
- How to make a Shopify cart drawer accessible
- Accessible Shopify variant pickers and colour swatches
- The European Accessibility Act: a step-by-step plan for small online sellers
- ADA Title III and websites in plain English
- What to put in an accessibility statement
- How to make a WooCommerce store accessible
- How to fix accessibility issues without breaking your theme
- How to make a Shopify theme accessible: settings, apps and what to check
- Captions, transcripts and audio description for product and marketing video
- What a screen reader user hears on your product page, and how to fix it
- Accessible forms and checkout: labels, errors and autocomplete
- How to test your website with only a keyboard in 10 minutes
- Colour contrast explained: what WCAG asks and how to fix brand colours
- Why automated accessibility testing finds some problems but not all
- How do I write alt text that actually helps?
- What did WCAG 2.2 add to WCAG 2.1?
- How can I prove my website is monitored for accessibility?
- Does the European Accessibility Act apply to my online store?
- Do accessibility widgets make a website ADA compliant?
- Got an ADA website demand letter? What to do first
- How do I check if my website is accessible? A 15-minute method
- Website accessibility laws by country (2026)