There seems to be an issue with gifs on #mastodon right now. When I add a static gif-file on mastodon.social (running on 4.4.0-alpha) then other versions of mastodon (4.3.2 I tried) seem to interpret it as an animated gif.
This also seems to affect at least pixelfed.