When a GIF is the right format
GIF is an old format with a 256-colour palette per frame and compression that was never designed for moving photographs. A scroll of a modern website, with its gradients and images, is close to the worst case for it. It survives because it plays almost everywhere, with no player, no click and no autoplay rules.
- Use a GIF in an email to a client or a newsletter, in a GitHub README or issue, in docs and wikis that do not embed video, and in chat apps that preview GIFs inline.
- Use an MP4 or WebM on your own website, in social posts, in portfolios and anywhere a
<video>tag works. Same motion, better colour, a fraction of the size.


