Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

vivaxy/tween

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tween

JavaScript Tween Library

Demo

See here.

Usage

new Tween(element)
    .animate({
        style: 'top',
        from: 0,
        to: 200,
        value: function (v) {
            return v + 'px';
        },
        duration: 1000
    })
    .on('end', function () {
        console.log('end');
    })
    .on('frame', function (v) {
        console.log('top: ' + v + 'px;');
    })
    .start()
    .pause();

Contributing

  • npm install
  • npm run build

Releases

No releases published

Packages

No packages published