This package has been deprecated

Author message:

no longer utilizing this module

properjs-tween

0.2.0 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i properjs-tween

    Weekly Downloads

    5

    Version

    0.2.0

    License

    none

    Last publish

    Collaborators

    • kitajchuk