fix: modify naming

This commit is contained in:
shao 2019-07-25 10:10:53 +08:00
parent fcd39e574c
commit b6c5db845c

View File

@ -0,0 +1,17 @@
const Eases = {
easeInOutCubic: (t: number, b: number, c: number, d: number) => {
const cc = c - b;
t /= d / 2;
if (t < 1) {
return (cc / 2) * t * t * t + b;
}
return (cc / 2) * ((t -= 2) * t * t + 2) + b;
},
easeOutCubic: (t: number, b: number, c: number, d: number) => {
const cc = c - b;
t /= d - 1;
return cc * (t * t * t + 1) + b;
},
};
export default Eases;