Developer notes
Animations (like animated gifs or animated SVG) can be accessible if:
- it automatically stops after 5 seconds or
- if users are presented with an intuitive way to pause it
- it has alt text or an alternative method of consumption is available
Code examples
Allow animations to be disabled with CSS
People with vestibular disorders can be made ill by sweeping animations on screen.
It is important to change or disable animations when device reduce motion settings are activated.
This can be accomplished via CSS media query.
Bouncy box
If your device is set to reduce motion, the animation will softly fade from one color to the next instead of bounce; otherwise it will bounce.
Animated element