Search topics
Tickers, carousels and animations that can't be paused
An announcement bar scrolls its messages without end, or a carousel swaps them every few seconds, and only holding a mouse pointer over it stops it.
animation: ticker 30s linear infinite; The problem
People who can't read moving text, or can't look away from it, have no way to stop the scrolling announcements without a mouse
A linen shop has a thin announcement bar across the top of every page. Its three messages, free delivery over $50, an autumn sale and a new range of shirts, scroll sideways in one long line, round and round for as long as the page is open. Holding the mouse pointer over the bar pauses it, and it starts again the moment the pointer leaves. There is no button to stop it, and nothing for the keyboard to reach. Many shops show the same bar as a small slider instead: one message at a time, swapped every four seconds, with an arrow at each end. The arrows step through the messages, but the timer carries on, and again only the mouse pointer held over the bar stops it. A homepage carousel that turns its slides on a timer fails in the same way, and takes the same fixes.
Success criterion 2.2.2 Pause, Stop, Hide applies to moving, blinking or scrolling information that starts by itself, lasts more than five seconds, and sits alongside other content. All three hold here, so the page needs a way for the visitor to pause, stop or hide the bar. Pausing on hover is not that way: it needs a mouse, works only while the pointer stays put, and gives keyboard, touch and voice users nothing. Understanding 2.2.2 says the same of animation that stops only while it has focus, because it ties the visitor to the moving thing. Failure F16 is scrolling content with no mechanism to pause it. The slider's arrows don't count either: they change the message, but nothing stops the rotation.
The bar sits at the top of every page, so the movement follows the visitor through the whole shop. On a phone, the bar is also where the eye lands first.
3 of 10 groups affected
- No vision (not affected)
- Low vision (affected)
- Colour vision (not affected)
- No hearing (not affected)
- Hard of hearing (not affected)
- No speech (not affected)
- Motor (affected)
- Reach, strength (not affected)
- Cognitive (affected)
- Seizures (not affected)
- Limited language, cognitive and learning abilities Movement at the edge of the page pulls the eye back again and again, so people with attention difficulties can't settle on the content beside it, and people who read slowly lose each message before they finish it.
- Limited vision With a screen magnifier, only part of the bar is in view, and the words slide out of it before they can be read. Low vision readers who need to track each word can't keep up with text that moves.
- Limited manipulation The only way to stop it is to hover a mouse over it, which keyboard, switch and voice control users can't do, and which touch screens have no way to hold.
The audit finds every CSS animation that runs forever and flags it for a person to check, but it can't tell a ticker from a gently pulsing dot, or see a Pause button somewhere else on the page. Movement that a script drives frame by frame, as many carousel and ticker libraries do, never shows up as a CSS animation at all. axe reports the old <marquee> element, which browsers still scroll, but not the CSS that replaced it. AI fixes often add animation-play-state: paused on :hover and :focus-within, which looks like a pause but stops only while the pointer or focus stays on the bar, or turn the animation off under the reduced-motion setting and stop there, which helps only people who found that setting. A slider that swaps its messages on a timer has no animation running at all; the audit flags it only when it is marked data-autoplay="true", as many themes mark their announcement bars, or is a Bootstrap, Splide, Swiper or Slick slider with autoplay on.
What the checkers report
- axe DevTools
- <marquee> elements are deprecated and must not be used
- WAVE
- Marquee
- Blinking content
Try it
Try to stop the moving announcements, first with the mouse, then with Tab
Broken 1: hover over the bar, then press Tab. Hovering pauses it only while the pointer stays there, and Tab finds nothing that stops it. "Stop demo" is the Learn page’s own button, not the shop’s.
Broken 2: the slider version. Try its arrows: they change the message, but the timer carries on.
Apply a fix. Try again with the mouse and with Tab. Does anything still move that you can’t stop?
Broken Can you fix this?
- Free delivery on orders over $50
- Autumn sale: up to 30% off until 31 October
- New: linen shirts in five colours
Linen for every season
Washed soft, woven to last, and made in small runs.
Shop shirtsThe fix
Keep the messages still, or give people a way to stop them
A ticker that only a mouse can pause
<div class="ticker"> <div class="ticker-track"> <ul> <li>Free delivery on orders over $50</li> <li>Autumn sale: up to 30% off until 31 October</li> <li>New: linen shirts in five colours</li> </ul> <!-- The same three messages again, so the loop has no gap. --> <ul aria-hidden="true">…</ul> </div></div>What is wrong3 points
- The bar never stops moving. The animation starts as the page loads and runs
infinite, far past the five seconds that movement with no way to stop it may last. - Keyboard, touch and voice users can't stop it. The
:hoverrule is the only pause, and only a mouse can hover. - A mouse user can't keep it still either. The bar moves on as soon as the pointer leaves.
The messages stay still
<ul class="notices"> <li>Free delivery on orders over $50</li> <li>Autumn sale: up to 30% off until 31 October</li> <li>New: linen shirts in five colours</li></ul>How it is fixed2 steps
- Write the messages once, in a list that doesn't move. Nothing moves, so 2.2.2 has nothing to ask for, nobody has to find a control, and there is no hidden copy to keep in step.
- Let them wrap onto a second or third line on a narrow screen instead of running off the edge.
This fixes both Befores and passes 2.2.2. On a phone the wrapping makes the bar taller, so keep it to the messages that matter.
Why this fix: Let people stop anything that moves by itself
All three pass 2.2.2. Still messages cost no button and no script, and everyone can read every message, but the design gives up its movement and the bar can take two or three lines on a phone. One message at a time keeps the bar to one line on any screen, at the cost of two buttons and a little script, and the later messages are seen only by people who press Next. The Pause button keeps the movement the design was built around, at the cost of a button, a little script and a bar that moves for everyone until they find it. Choose still messages when they fit, one at a time when space is tight, and the Pause button when the movement is part of the brand.
Pausing on hover is a kindness to mouse users reading a message, and it can stay, but it is never the mechanism. The same goes for pausing while the bar has focus: Understanding 2.2.2 rules out a pause that lasts only as long as focus stays on the moving content.
Starting stopped under the reduced-motion setting, as the Pause button fix does, helps the people who set it, but it is no substitute for the button. Many people who are distracted by movement never find that setting, or use a computer they can't change, and 2.2.2 asks for a mechanism on the page. The script sets the starting state rather than a media query, so the button and the bar always agree, and pressing Play is the visitor's own request to see it move.
The Pause button is an icon button, so it needs what any icon button needs: a name in hidden text or aria-label, an icon with 3:1 contrast against the bar, a size of at least 24 by 24 pixels, a visible focus ring, and an icon and name that change together. Put it before the moving content, not after the last message, and keep the choice for the rest of the visit, for example in sessionStorage, so the bar does not start again on every page.
The copy of the messages that makes the loop seamless needs aria-hidden="true", or screen readers read every message twice. If the messages are links, use inert instead, which also takes the copies out of the tab order; aria-hidden on focusable links leaves Tab stops that read as nothing.
Motion that stops by itself within five seconds needs no control. An entrance animation, or an animated GIF exported to loop only a few times, passes as long as it is over in five seconds. A ticker can't meet that and still show its messages, so it needs one of the fixes above. A pulsing button, a glowing badge or a spinning icon can, and that is its usual fix: pulsing buttons, glowing badges and endless animations.
If a slider keeps its timer, give the message list aria-live="off" while it turns and "polite" once it is stopped, or every change interrupts screen reader users.
When what turns holds links or buttons, as a carousel's slides usually do, stop the rotation for good as soon as keyboard focus enters it, and start it again only from the Play button. Otherwise the slide can change while focus is on its link, and the keyboard user is suddenly on a link they never read, or on nothing at all. The ARIA Authoring Practices carousel works this way: focus inside stops it, and moving focus out does not restart it.
A close button that hides the bar also passes, since 2.2.2 allows pause, stop or hide. It is a good extra, but on its own it leaves the people who most need the delivery and sale details with the choice of reading moving text or not reading it at all.
The same failure shows up wherever something moves by itself alongside the content. Each takes the same fixes, stay still or a stop button beside it.
- Logo strips and "marquee" rows of products that slide sideways without end.
- Animated GIF, WebP and Lottie illustrations that loop for more than five seconds.
- Background videos, which need their own Pause button even when muted: see background videos that loop with no pause button.
- The old
<marquee>element, which has no way to pause and should be replaced, not styled.
Content that updates by itself, such as a countdown, a news feed or live prices, falls under the same criterion, and is covered in countdown timers that screen readers keep reading out. A carousel's arrows and dots, and what a screen reader hears when they change the slide, have a guide of their own: carousels that keyboard and screen reader users can't use.
Design ideas
Movement can stay, as long as it stops
Five ways to draw content that moves by itself: the strips, rotating quotes and entrances many sites ship. Watch each, pressing Replay to see it again, then try to stop it with the keyboard: three stay still, stop by themselves or let you stop them, and two carry on with nothing but a mouse to stop them, or nothing at all.
In the design file
- Draw the section still first, with everything in it in view at once.
- If it moves, draw a Pause button at its start, at least 24 by 24 pixels, and the section once paused.
- Write how long any movement runs, either under five seconds or until someone presses Pause.
- Draw the page for people who turn motion off, with nothing moving.
Passes
- Fernway
- Brightfold
- Oakline
- Quillby
- Northpaw
- Harbourly
Everything in one still row Whatever would have scrolled past, such as logos, products or short messages, set out in a row that wraps on a phone. Nothing moves, so 2.2.2 asks nothing, and everything is there to read for as long as anyone likes. Show the few that matter rather than looping twenty.Rule of thumb: Let people stop anything that moves by itself
- Fernway
- Brightfold
- Oakline
- Quillby
An entrance that plays once The items slide in from the right as the section comes into view, each 60ms after the last, and rest within a second. The arrival keeps the sense of a lively section; what passes is that it ends long before five seconds and never loops.Rule of thumb: Move to show a change, then stop
- Fernway
- Brightfold
- Oakline
- Quillby
- Northpaw
- Harbourly
- Mossgate
- Tallow
A moving strip with a Pause pill before it For a design built around the movement: a 32px pill with the word “Pause”, not only an icon, at the start of the strip and first in the Tab order. Pressed, it lays everything out still and reads “Play”. This sample also stops by itself after five seconds; a real strip runs until Pause.Rule of thumb: Let people stop anything that moves by itself
Fails
- “Arrived in two days.”
- “Easy to set up.”
- “Quick, kind replies.”
- “Exactly as pictured.”
- “Works well on my phone.”
A strip that glides on, pausing only on hoverWCAG 2.2.2 The strip many sites ship for logos, reviews or products: gliding sideways without end, faded at both ends, paused only while the pointer rests on it. Nothing else stops it, so it pulls at the eye beside whatever people are reading for as long as the page is open. This sample stops after five seconds; the pattern never does.Rule of thumb: Let people stop anything that moves by itself
“Arrived in two days.”
A quote that fades to the nextWCAG 2.2.2 One quote that fades to the next every 2 seconds, quieter than a moving strip and easy to take for still. It is still a change that starts by itself and carries on beside the content, so it needs a way to stop it like any movement. This sample stops after two changes; the pattern never does.Rule of thumb: Let people stop anything that moves by itself
Verify the fix
5 checks.
Test with: Keyboard, Mouse, Reduced motion, Zoom, Screen reader
Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after the bar, its messages or its library change.
Limits
This is a starting pattern, not a guarantee for every application. It covers movement only: flashing, more than three times in any one second, is a separate check under 2.3.1, made with a flash analysis tool rather than by eye. Whether the movement is essential, and whether the page is calm enough once it is stopped, still needs a person to judge.
This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.
References
- WCAG Understanding: pause-stop-hide (opens in a new tab)
- WCAG Technique G186 (opens in a new tab)
- WCAG Technique G4 (opens in a new tab)
- WCAG Technique F16 (opens in a new tab)
- developer.mozilla.org: marquee (opens in a new tab)
- developer.mozilla.org: prefers-reduced-motion (opens in a new tab)
- ARIA APG: carousel (opens in a new tab)
EaseWeb service
Fixed it? Keep it from coming back.
I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.