Skip to content

ryanflorence/SpriteAnimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Animates sprite images

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors