2 lines
100 B
TypeScript
2 lines
100 B
TypeScript
export const easeInOut = (x: number) =>
|
|
x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2; |