anima-animation
v2.0.0
Published
animation module
Downloads
9
Readme
anima-animation
animation module
Install
$ npm install anima-animation
Usage
var animaAnimation = require('anima-animation');
// use animaAnimation
var animation = new animaAnimation(
1000, // duration(ms)
animaAnimation.cubicbezier.ease, // timingFunction
100, // delay(ms)
function(i1, i2) { // frame
console.log(i1, i2);
}
);
animation.onend(function() {
console.log(end)
});
animation.play();