When you go to lay options -> custom HTML and CSS -> HTML at top
you can enter the markup for your image. Now you would need to use CSS animations.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations
Please take a look around the web to learn how they work.