- Success Criterion 2.3.1
- Conformance level A
Rapid Full-Screen Color Flash on Load or Error
2.3.1 — Three Flashes or Below Threshold
Scenario
Setting
A real-estate marketplace's listing page
What’s wrong
Rapid full-screen color inversion animations on load or error states.
Example
setInterval(() => document.body.classList.toggle("inverted"), 100); // runs for 2 seconds on load Why it matters
A house hunter opening a listing is hit with rapid full-screen color inversion meant to signal loading, before seeing any photos.
How to test
Review any rapid full-screen color-inversion animation (on load or error states) with PEAT: above-threshold flashing fails.
How to fix
A skeleton screen signals loading without any full-screen flashing.
<div class="skeleton-loader" aria-hidden="true"></div>
<!-- remove the classList.toggle interval --> Outcome
Loading with a calm spinner, a house hunter's listing page never flashes at them.
Who is affected
Users with photosensitive epilepsy risk a seizure from a full-screen flashing effect they can't anticipate or skip.
Learn more
- Understanding Understanding document (opens in a new tab)
Related scenarios
- Content Flashing Faster Than 3 Times per Second
- Strobe Intro or Glitch Effect Above the Flash Threshold
- Unedited Video With Strobe or Lightning Effects
- Ad or User-Generated Content Never Screened for Flashing
- Rapid Hover Effect That Flashes When a Key Autorepeats
- Loading Spinner Built as a Rapid Full-Screen Flicker