// t - process 已消耗时间
// b - 起始值
// c - 数值差的绝对值
// d - duration 总需求时间
easeOutExpo = (t, b, c, d) =>
// -Math.pow(2, -10 * t / d) + 1 指数函数 (0-1)
c * (-Math.pow(2, -10 * t / d) + 1) * 1024 / 1023 + b
easeOutBounce = (t, b, c, d) => {
if ((t /= d) < (1 / 2.75)) {
return c * (7.5625 * t * t) + b;
} else if (t < (2 / 2.75)) {
return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;
} else if (t < (2.5 / 2.75)) {
return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;
} else {
return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
}
}
收集缓行运动函数,用于实际动效的开发