Choosing the best methods of portraying information (be it a gif or not) all boils down to the reason, design and implementation.
The example you linked to is indeed at first glance spammy and tacky looking but what if that was the intention of the designer, maybe an ironic statement. My point is without more detail on reason for the design and implementation and also target audience, judging a standalone ui element (including a gif) is difficult to do properly.
In general gif's can be very useful if they are the best method of portraying the information needed to be portrayed.
There are some good examples on this link on potential uses of an animated gif:
http://www.makeuseof.com/tag/5-uses-for-animated-gifs-other-than-annoying-memes/
These include:
- Provide Visual Instructions
- Enhance Product Illustrations
- Demonstrate UX