|
|
@ -1,4 +1,4 @@
|
|
|
|
function easeInOutCubic(t: number, b: number, c: number, d: number) {
|
|
|
|
export function easeInOutCubic(t: number, b: number, c: number, d: number) {
|
|
|
|
const cc = c - b;
|
|
|
|
const cc = c - b;
|
|
|
|
t /= d / 2;
|
|
|
|
t /= d / 2;
|
|
|
|
if (t < 1) {
|
|
|
|
if (t < 1) {
|
|
|
@ -6,5 +6,3 @@ function easeInOutCubic(t: number, b: number, c: number, d: number) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return (cc / 2) * ((t -= 2) * t * t + 2) + b;
|
|
|
|
return (cc / 2) * ((t -= 2) * t * t + 2) + b;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export { easeInOutCubic };
|
|
|
|
|
|
|
|