mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
fix: modify naming
This commit is contained in:
parent
fcd39e574c
commit
b6c5db845c
17
components/_util/easings.ts
Normal file
17
components/_util/easings.ts
Normal 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;
|
Loading…
Reference in New Issue
Block a user