blob: 95da687f64590a14f91209672c4044d56ac63155 [file] [log] [blame]
'use strict';
// See: http://robertpenner.com/easing/
Object.defineProperty(exports, "__esModule", {
value: true
});
var easeInOutQuad = function easeInOutQuad(t, b, c, d) {
t /= d / 2;
if (t < 1) return c / 2 * t * t + b;
t--;
return -c / 2 * (t * (t - 2) - 1) + b;
};
var inOutQuintic = function inOutQuintic(t, b, c, d) {
var ts = (t /= d) * t;
var tc = ts * t;
return b + c * (6 * tc * ts + -15 * ts * ts + 10 * tc);
};
exports.easeInOutQuad = easeInOutQuad;
exports.inOutQuintic = inOutQuintic;