npm.io
0.2.0 • Published 7 years ago

tweense

Licence
MIT
Version
0.2.0
Deps
0
Size
40 kB
Vulns
0
Weekly
0

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