tweense

0.2.0 • Public • Published

TweenSE

A tiny javascript tweening animation engine.

NPM version NPM downloads

Install

npm i tweense -s

Usage

const { animate } = require('tweense')

animate(
  0,                     // initial valud
  1,                     // target value
  1000,                  // duration
  'Quad.easeIn',         // timing function
  (value, isEnding) => { // callback
    if(!isEnding){
      arc.render(value)
    }
  }
)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

tweense © ULIVZ, Released under the MIT License.
Authored and maintained by ULIVZ with help from contributors (list).

github.com/ulivz · GitHub @ULIVZ · Twitter @_ulivz

Readme

Keywords

none

Package Sidebar

Install

npm i tweense

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

41.4 kB

Total Files

7

Last publish

Collaborators

  • ulivz