UNPKG

533 BTypeScriptView Raw
1import { Animation, EasingFunction, InterpolateFunction } from './interface';
2declare class Animator {
3 element: any;
4 animation: Animation;
5 isClip: boolean;
6 easing: EasingFunction;
7 duration: number;
8 delay: number;
9 property: string[];
10 interpolates: InterpolateFunction[];
11 totalDuration: number;
12 onFrame?: any;
13 end: boolean;
14 constructor(element: any, animation: Animation);
15 to(time: number): void;
16 update(t: number, time: any): void;
17 onEnd(): void;
18}
19export default Animator;