@angular-mdl/core
Version:
Angular components, directives and styles based on material design lite https://getmdl.io.
35 lines (34 loc) • 1.13 kB
TypeScript
export interface AnimationPlayer {
onDone(fn: () => void): void;
play(): void;
}
export declare class NativeWebAnimationPlayer implements AnimationPlayer {
private element;
private keyframes;
private duration;
private easing;
private onDoneCallback;
constructor(element: HTMLElement, keyframes: {
[key: string]: string | number;
}[], duration: number, easing: string);
onDone(fn: () => void): void;
play(): void;
}
export declare class NoopAnimationPlayer implements AnimationPlayer {
private onDoneCallback;
onDone(fn: () => void): void;
play(): void;
}
export declare abstract class Animations {
abstract animate(element: HTMLElement, keyframes: {
[key: string]: string | number;
}[], duration: number, easing: string): AnimationPlayer;
}
export declare class NativeWebAnimations implements Animations {
animate(element: HTMLElement, keyframes: {
[key: string]: string | number;
}[], duration: number, easing: string): AnimationPlayer;
}
export declare class NoopWebAnimations implements Animations {
animate(): AnimationPlayer;
}