缓动效果

window.onload = function() {
function regularEaseInOut(t, b, c, d) {
if ((t /= d / 2) < 1) {
return c / 2 * t * t + b;
}
return -c / 2 * ((--t) * (t - 2) - 1) + b;
}
}

原文地址:https://www.cnblogs.com/qqyuhaitao/p/3466525.html