One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
/* | |
* Tween.js | |
* t: current time(当前时间); | |
* b: beginning value(初始值); | |
* c: change in value(变化量); | |
* d: duration(持续时间)。 | |
* you can visit 'http://easings.net/zh-cn' to get effect | |
*/ | |
var Tween = { |
/** | |
* Easing functions | |
* | |
* https://gist.github.com/gre/1650294 | |
* http://easings.net | |
*/ | |
// no easing, no acceleration | |
export function easeLinear(t){ return t } | |
// accelerating from zero velocity | |
export function easeInQuad(t){ return t*t } |