An animated GIF is a graphic with multiple images that loop one after another, creating motion. The format is popular for social media memes, but GIFs also appear on commercial web pages to provide instructions or showcase a product.
Optimizing an animated GIF for organic search rankings is more or less the same as an image. Google can understand the meaning of many images. But adding text remains helpful for sending relevant signals.