@builder.io/sdk
Version:
This SDK is largely a wrapper over our [Content API](https://www.builder.io/c/docs/content-api)
27 lines (26 loc) • 710 B
TypeScript
export interface AnimationStep {
styles: {
[key: string]: string;
};
delay?: number;
}
export interface Animation {
elementId: string;
trigger: string;
steps: AnimationStep[];
duration: number;
delay?: number;
easing?: string;
id?: string;
repeat?: boolean;
thresholdPercent?: number;
}
export declare class Animator {
bindAnimations(animations: Animation[]): void;
private warnElementNotPresent;
private augmentAnimation;
private getAllStylesUsed;
triggerAnimation(animation: Animation): void;
bindHoverAnimation(animation: Animation): void;
bindScrollInViewAnimation(animation: Animation): void;
}