Nerdiest Political Manifesto

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

install

npm i properjs-tween

Downloadsweekly downloads

14

version

0.2.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability