I imagine Microsoft Teams is among the platforms aolsonpacheco is thinking of.
I tried playing with <summary> <detail> a little more. This was the best I could do. (The gif came with some code that I copied from somewhere else. I do not mean it as a statement associated with this conversation.)
<div style="margin-bottom:20px;" >
<details>
<summary style="cursor: pointer; font-size: large; border: 1px solid #D6D9DC; background-color: #f5f5f5; padding: 10px 10px 10px 20px; border-radius: 25px; width: 230px;" role="button" aria-expanded="false">Click to Show/Hide Gif</summary>
<div><img src="https://assets.codepen.io/128034/stopl.gif" alt="Animated: Alan Partridge - would it be rude to stop listening to you?" /></div>
</details>
</div>
While it still isn't as ideal as being able to pause the gif, it is still a way to improve the accessibility.
- 4/29/22 Update -
I tried adding this as a reply and it didn't take, so I'm trying again via editing an existing post.
The problem with the two-images-plus-overlay method is that it isn't supported in Canvas.
When I tried the code from CSS Tricks, this is what I got. Video of how code renders in Canvas (no audio).
In the video, the still image is visible.
Clicking on the still image does nothing.
Clicking the arrow beneath the still image reveals the animated image below the arrow. (So we have visible still, visible arrow, visible animated gif)
Clicking either of the images does not hide the animated gif.
Clicking the arrow hides the animated gif.
This is why I altered the code to create a show/hide gif button.