Check of this cool trick by Steve Faulkner that allows you to pause a GIF using the HTML <details>
/<summary>
element. Its a quick and dirty way to pass WCAG Success Criterion 2.2.2 Pause, Stop, Hide.
The trick behind the treat is a non-animated JPG that covers the GIF, effectively “pausing” it.
All comments posted on 'Pause a GIF with HTML details/summary — the accessible way.' are held for moderation and only published when on topic and not rude. Get a gold star if you actually read & follow these rules.
You may write comments in Markdown. This is the best way to post any code, inline like `<div>this</div>` or multiline blocks within triple backtick fences (```) with double new lines before and after.
Want to tell me something privately, like pointing out a typo or stuff like that? Contact Me.