Skip to content
easeweb
Search topics

Pulsing buttons, glowing badges and endless animations

A call-to-action button pulses to draw the eye, and the pulse repeats without end, so it keeps moving beside the rest of the page while it is open.

WCAG 2.2
SC 2.2.2A
Required by
Section 508 · EN 301 549 (EU)
Broken animation: pulse 1.5s ease-out infinite;
The accessibility problem illustrated: Cognitive:I can't stop looking at it.
01

The problem

People with attention difficulties, and people reading beside the button, keep having their eye pulled back to a pulse that never stops, and nothing on the page stops it

02

Try it

Watch the button for five seconds, then point at it and press Tab

The readout counts how long the button has been moving.

On the broken side it never stops. "Stop demo" is the Learn page’s own button, not the app’s.

Broken Can you fix this?

BrokenA button that pulses forever

Moved for: 0 s

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Stop the animation within five seconds, or take it away

Before
BrokenA button that pulses forever
<a class="cta" href="/signup">Start free trial</a>
What is wrong3 points
  • The pulse never ends while people read beside it: infinite makes the ring spread again every 1.5 seconds for as long as the page is open, far past the five seconds that movement may run with no way to stop it.
  • It moves even for people who have asked for less motion: the animation isn't inside a no-preference query, so it runs for every visitor.
  • Someone it distracts can't make it stop: nothing on the page pauses or stops it.
After

Three pulses, then still

<a class="cta" href="/signup">Start free trial</a>
How it is fixed2 steps
  1. Change one value: infinite becomes 3. Three cycles of 1.5 seconds are over in 4.5 seconds, so the pulse still draws the eye as the page opens, then the button rests and the visitor can read.
  2. Write it inside no-preference, so people who have asked for less motion never see it.

This fixes the Before and passes 2.2.2. It holds only while nothing starts the animation again: a script that re-adds the class every few seconds, or on every scroll, turns it back into movement without end. Keep cycles × duration under five seconds if you change either.

Why this fix: Make motion opt-in

HTML and ARIA
04

Design ideas

Draw the eye once, then let people read

Five ways to make the Start free trial button stand out. The moving samples start when they scroll into view and stop within five seconds, and Replay runs one again; point at each button and Tab to it. Three pass because they stay still, stop by themselves or move only when asked; two stop here only because this page stops them.

In the design file

  • Write next to every animation how many times it plays and how long each takes, under five seconds in total, such as 3 times 1.5 seconds.
  • Draw the button as it looks once the animation has stopped.
  • Draw the page for people who turn motion off, with nothing moving at all.
  • Use one short movement each for hover and focus, and keep the focus ring.

Passes

  • The plan card picked out Nothing moves, so 2.2.2 has nothing to ask. The plan to choose is the card with a 2px #1d4ed8 border, a soft tint, a Most popular badge on its edge (white on the blue, 6.70:1) and the only filled button; it needs a second plan beside it to stand out from.
  • $12 / month Start free trial
    A shine that crosses once A soft white sheen crosses the pill once, in 0.9 seconds, as the button comes into view, and then it rests. Coming into view counts as starting by itself, so what passes is the length: shine snippets usually repeat every few seconds, and a count of one keeps the look.
  • $12 / month Start free trial
    An arrow that slides on hover and focus Still at rest. When the pointer arrives or Tab lands, the arrow slides 4px to the right in 0.2 seconds and stays there until the pointer or focus leaves, so the movement answers the person instead of calling across the page; it gives no pull as the page opens.

Fails

  • $12 / month Start free trial
    A gradient border that keeps circlingWCAG 2.2.2 A light runs round the pill every 2 seconds for as long as the page is open, beside the price people are reading, and nothing stops it; the same border held still keeps the look without the pull. This sample stops after two turns and doesn’t move under a reduced-motion setting; the pattern itself never stops.
  • $12 / month Start free trial

    Loading reviews…

    A skeleton that keeps shimmeringWCAG 2.2.2 The reviews never arrive, and their placeholder shimmers on beside a price and button people can already use; loading motion is essential only while nothing else on the page can be used. Stop it when loading stops, or after a few seconds show a still grey block or “Still loading…”. This sample stops after three sweeps and doesn’t move under a reduced-motion setting; the pattern itself never stops.
05

Verify the fix

5 checks.

Test with: Reduced motion, Keyboard, Mouse, Zoom

0 of 5 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after the design, the CSS framework or the animation library changes.

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 an animation is decoration or information, and whether the page is calm enough once it is still, 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.

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.

See the service