JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demos
Docs
Source
CHANGELOG.md
README.md
TODO.md
logo.png
package.yml

README.md

SpriteAnimation

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.

Resizable

How to use

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.