- All images, including animated images, must have alternative text (see Images: Alternative Text).
- Any animation that starts automatically and moves for more than 5 seconds must provide a way for the user to pause, stop, or hide the animation.
Do not include auto-playing animations or other motion that cannot be paused in course material or Canvas pages, on web sites or applications, or in publically available communications.
An image that starts automatically and moves for more than 5 seconds must provide a way for the user to pause, stop, or hide the animation. This applies to element transitions, animated gifs, parallax scrolling, and code-based moving elements such as data visualizations and animated features.
Automatic movement can trigger vertigo, headaches, and nausea in people with vestibular disorders and seizures in people with conditions like photosensitive epilepsy. In addition, auto-motion is distracting to some people with learning and cognitive disorders.
However, sometimes no other method will achieve the desired effect, and animation is necessary. In these cases, ensure that your animations comply with WCAG 2.1 guidelines, as indicated below.
ASU Web Standards
In addition to WCAG 2.1, ASU has additional university standards for animation. Even if your site is not a college or unit site, we recommend you take a look at these standards as they are detailed and well-researched.
For animated gifs, do ONE of the following:
- Provide a pause button: We currently know of no programmatic way to automatically play a video while providing a pause button. If anyone comes across one, please let us know.
- Play (loop) the animation for less than 5 secs: You will need to modify the number of times an animation loops. You can change the number of loops using an online tool like ezgif.com or desktop graphics software like Photoshop:
- Open the animated gif in Photoshop.
- Go to Window > Timeline (if the Timeline panel is not already open).
- At the bottom of the Timeline panel, you will see an option that says "Forever." Change that to "Once" (or choose "Other" and change it to "2," depending on the length of the animation).
- Go to File > Export > Export for Web and save it as a gif.