npm.io
0.2.0 • Published 11 years ago

properjs-tween

Licence
—
Version
0.2.0
Deps
1
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

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

Keywords