Robert Penner 的缓解函数,略作修改
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); // => 4List of available functions:
暂无开放 Issues,或尚未同步最近议题。