Skip to content
easeweb
Search topics

Flashing banners and videos that can trigger seizures

A flash-sale banner swaps black and yellow five times a second across the page's full width: fast, bright and large enough to trigger a seizure.

WCAG 2.2
SC 2.3.1A
Required by
Section 508 · EN 301 549 (EU)
Broken animation: strobe 0.2s steps(1) infinite;
The accessibility problem illustrated: Seizures:I have to look away.
01

The problem

People with photosensitive epilepsy can have a seizure from a few seconds of a large, bright banner flashing five times a second, before they have time to look away

02

Try it

See how often the sale banner flashes in one second, and how much of the view it covers

This page never plays flashing faster than three times a second, so the broken banner strobes at a fifth of its speed, and the strip under it shows its real second, frame by frame. The dashed box is 341 × 256 pixels, W3C’s estimate of a 10-degree field of view: a fast flash may cover a quarter of it. "Stop demo" is the Learn page’s own button, not the shop’s.

Broken Can you fix this?

BrokenA banner that strobes

Flash sale: 50% off everything until midnight

  • Wool coat $90
  • Linen shirt $34
  • Canvas tote $22
Real speed: 5 flashes a second

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Stop the flashing, or slow it to one flash a second

Before
BrokenA banner that strobes
<div class="flash-sale">  <p>Flash sale: 50% off everything until midnight</p></div>
What is wrong3 points
  • The banner strobes at a rate that can set off seizures: steps(1) jumps straight from black to yellow and back with no fade, every 0.1 seconds, five flashes a second from dark to bright, where 2.3.1 allows three for a flash this large.
  • The flashing fills much of the view: a full-width banner 110 pixels tall covers about 43% of the 341 × 256 pixel field, where 2.3.1 allows a quarter.
  • It never lets up: infinite keeps it flashing for as long as the page is open.
After

A still banner

<div class="flash-sale">  <p>Flash sale: 50% off everything until midnight</p></div>
How it is fixed2 steps
  1. Remove the animation. Nothing changes, so nothing flashes, and there is nothing to measure.
  2. Keep the sale's colours, black on bright yellow, and add a heavy black edge above and below. The banner still stands out as the brightest thing on the page.

This fixes the Before and passes 2.3.1. It also passes 2.3.2 and 2.2.2 with nothing to keep in check.

04

Verify the fix

5 checks, no mouse.

Test with: Flash analysis, Reduced motion, 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, a campaign banner, a video or the animation library changes.

Limits

This is a starting pattern, not a guarantee for every application, and not medical advice. The thresholds lower the risk of a seizure but don't remove it: some people react below three flashes a second, and to still patterns of stripes or checks that 2.3.1 doesn't cover. The audit measures flashes it can read from the page, not video, animated images or canvas, and it doesn't add up small flashes that sit side by side. A flash analysis tool and a person still need to check what it can't see.

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