Cycles the x value of the background-position of an element to create sprite animations. Helpful for creating javascript game animations or ajax loadings spinners.
First set your image up to be a sequence of equal-width, horizontal frames.
var animation = new SpriteAnimation('animation',{
frameWidth: 80,
frames: 4,
frameRate: 120
});
View the MooDoc for usage and examples.