0.2.0 • Published 6 years ago

tweense v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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