$ npm install tween-functions
Robert Penner's tweening functions as used in React-tween-state and React-state-stream.
Penner's original functions uses the change in value rather than final value as parameter. I much prefer the latter, so this is what this library will use.
tweenFunction.tweenName(currentTime, beginValue, endValue, totalDuration)
var tweenFunctions = require('tween-functions');
tweenFunctions.easeInQuad(1, 0, 50, 5); // => 4
List of available functions:
© 2010 - cnpmjs.org x YWFE | Home | YWFE