Animation

Introduction

Well-designed animations can enhance comprehension (such as a graphic showing a step by step process), prompt users as they interact with an element (such as a button), or just be purely decorative.

Illustration of Yume

Yume has epilepsy which can be triggered by fast animations. This can make her wary online, and as a result she avoids many websites she suspects may use animation.

Side effects for certain users

Poorly designed animations may affect users with:

  • Photosensitive epilepsy – seizures can be triggered by flashing and/or brightly coloured light, with red and/or high contrast animations carrying the most risk.
  • Visual impairments– screen readers sometimes struggle to present content that changes unexpectedly.
  • Vestibular disorders – symptoms like motion sickness, headaches, and nausea can occur when viewing large-scale animations and media.
  • Migraine sensitivities or headaches – may have similar responses to people with vestibular disorders.
  • Difficulties reading or concentration – on-screen movement can be distracting and this may prevent people from completing tasks or getting the information they need.

Length of animation

WCAG states an animation should be:

  • less than 5 seconds, or
  • any animation over 5 seconds should include an option for the user to pause, stop or hide it.

Animation and seizures

As we’ve seen, bright, strobing animations can cause seizures in people with photosensitive epilepsy. In addition to the general animation considerations outlined above, it’s also vital that:

  • Animations don’t flash more than 3 times per second.
  • Flashing elements are small in size.
  • Tonally similar colours, or more gradual animations are used.
  • Red is avoided, or applied very carefully if creating any sort of flashing or blinking.

Things to check

Have you?

  • Allowed a user to pause, stop or hide any moving, blinking or scrolling content which lasts longer than 5 seconds?
  • Checked whether any content flashes or blinks more than 3 times per second?
    • If yes, is this content sufficiently small, and the flashes of low contrast?
    • Is red used (as people can be more sensitive to flashing red content)?

WCAG criteria

Did you find this page helpful?