帧动画js实现

tips:依赖jQuery。

init:

var anim = frameAnimation.anims($('#sprite'), 518, 5, 0.5, 2);

play:

anim.start(); //正序播放

anim.start(true); //倒序播放