0.2.0 • Published 9 years ago
properjs-tween v0.2.0
Tween
A simple tween class using request animation frame. For when just a simple animation utility will do, which is most times :)
Installation
npm install properjs-tween --save-dev
Usage
var Tween = require( "properjs-tween" );
var tween = new Tween({
from: 0,
to: 500,
update: function ( t ) {
// Update stuff here
},
complete: function ( t ) {
// Animation all done !
},
ease: Easing.easeInOutQuad,
delay: 0
});