This animation class is used to animate a CSS sprite (moving a background
image). This moves through a series of images in a single image sprite and
loops the animation when done. You should set up the
background-image and size in a CSS rule for the relevant element.