You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
declare type easingFunc = (percent: number) => number;
|
|
export declare type AnimationEasing = keyof typeof easingFuncs | easingFunc;
|
|
declare const easingFuncs: {
|
|
linear(k: number): number;
|
|
quadraticIn(k: number): number;
|
|
quadraticOut(k: number): number;
|
|
quadraticInOut(k: number): number;
|
|
cubicIn(k: number): number;
|
|
cubicOut(k: number): number;
|
|
cubicInOut(k: number): number;
|
|
quarticIn(k: number): number;
|
|
quarticOut(k: number): number;
|
|
quarticInOut(k: number): number;
|
|
quinticIn(k: number): number;
|
|
quinticOut(k: number): number;
|
|
quinticInOut(k: number): number;
|
|
sinusoidalIn(k: number): number;
|
|
sinusoidalOut(k: number): number;
|
|
sinusoidalInOut(k: number): number;
|
|
exponentialIn(k: number): number;
|
|
exponentialOut(k: number): number;
|
|
exponentialInOut(k: number): number;
|
|
circularIn(k: number): number;
|
|
circularOut(k: number): number;
|
|
circularInOut(k: number): number;
|
|
elasticIn(k: number): number;
|
|
elasticOut(k: number): number;
|
|
elasticInOut(k: number): number;
|
|
backIn(k: number): number;
|
|
backOut(k: number): number;
|
|
backInOut(k: number): number;
|
|
bounceIn(k: number): number;
|
|
bounceOut(k: number): number;
|
|
bounceInOut(k: number): number;
|
|
};
|
|
export default easingFuncs;
|