UNPKG

487 BTypeScriptView Raw
1export declare type EasingFunction = (t: number) => number;
2export declare type InterpolateFunction = (t: number) => any;
3export interface Animation {
4 easing?: string | EasingFunction;
5 duration: number;
6 delay?: number;
7 property?: string[];
8 isClip?: boolean;
9 start?: any;
10 end?: any;
11 onFrame?: any;
12 onEnd?: any;
13}
14/**
15 * 动画生命周期
16 */
17export interface AnimationCycle {
18 appear?: Animation;
19 update?: Animation;
20 destroy?: Animation;
21}