WCAG Rules for Flashing and Strobing GIFs

Web Content Accessibility Guidelines (WCAG) regulate flashing and strobing GIFs to protect users with photosensitive epilepsy and other seizure disorders. Visual content that strobes rapidly or shifts between light and dark at specific frequencies can trigger physical reactions, migraines, or seizures. To ensure safety, WCAG establishes strict limits on flash frequency, color contrast, screen area coverage, and animation duration across multiple success criteria.

Guideline 2.3: Seizures and Physical Reactions

The core requirement governing strobing content is Guideline 2.3, which states that content must not be designed in a way that is known to cause seizures or physical reactions. This guideline breaks down into two key compliance levels:

Success Criterion 2.3.1: Three Flashes or Below Threshold (Level A)

To meet the baseline Level A requirement, an animated GIF must satisfy at least one of the following conditions:

Success Criterion 2.3.2: Three Flashes (Level AAA)

For organizations aiming for the highest tier of accessibility, Criterion 2.3.2 eliminates the threshold exception altogether. At Level AAA, content must simply never flash more than three times in any one-second window, regardless of the screen size, color, or relative luminance.

Success Criterion 2.2.2: Pause, Stop, Hide (Level A)

In addition to seizure prevention, WCAG regulates moving and looping media under Guideline 2.2. Flashing GIFs that loop continuously can cause severe cognitive strain and distraction for individuals with attention deficit disorders or vestibular issues.

Under Criterion 2.2.2, if an animated GIF:

  1. Starts automatically,
  2. Lasts longer than five seconds, and
  3. Is presented in parallel with other content,

the website must provide a mechanism for the user to pause, stop, or hide the animation.

Implementation and Compliance Strategies

To ensure GIF assets conform to WCAG standards: