For a design-based solution, you can set a GIF image for a loop only using Photoshop. Then just use window.setTimeout(callback, milliseconds) to fire the custom event.
You can calculate the timeout from the interval used to display each frame of the animation.
Ishmael
source share