mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
b8c38a9fe5
* chore: enhance eslint rules * chore: enhance eslint rules
5 lines
187 B
TypeScript
5 lines
187 B
TypeScript
export const cubic = (value: number): number => value ** 3
|
|
|
|
export const easeInOutCubic = (value: number): number =>
|
|
value < 0.5 ? cubic(value * 2) / 2 : 1 - cubic((1 - value) * 2) / 2
|