Instead of using .jpg file which is just an image, ‘load’ .gif file (you need to create your own)
.gif file can be made from sites like: https://ezgif.com/maker
You can load this .gif file by going to: Setup->Stores->Messages->Advertisement -> Load