How do I make animation and motion on my website accessible?

Published 9 November 2026 · Last updated · General information, not legal advice

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

ContentApplies when itYou must provideStore examples
Moving, blinking or scrollingStarts automatically, lasts more than five seconds and is shown alongside other contentA way to pause, stop or hide itHero carousels, scrolling announcement bars, looping product videos, animated GIFs
Auto-updatingStarts automatically and is shown alongside other contentA 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

  1. 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?
  2. Watch for flashing in banners, badges and videos.
  3. Turn on your device's reduce motion setting and reload. Do parallax, zoom and scroll effects calm down?
  4. 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 check

Where do these facts come from?

Every number and legal statement in this post links to one of these sources, read on 13 October 2026.

  1. W3C WAI: Understanding Success Criterion 2.2.2 Pause, Stop, Hide
  2. W3C WAI: Understanding Success Criterion 2.3.1 Three Flashes or Below Threshold
  3. W3C WAI: Understanding Success Criterion 2.3.3 Animation from Interactions
  4. MDN Web Docs: prefers-reduced-motion
  5. W3C: Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation, version of 12 December 2024

More questions

What should you read next?