anima-animation

v0.0.1
animation module

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();

Metadata

Downloads