UNPKG

animarte

Version:

Making the digital world a little more animated place

60 lines (57 loc) 1.74 kB
// Generated by dts-bundle-generator v9.5.1 export type EventName = string; export type EventData = any; export type EventCallback = (data: EventData) => void; export type AnimarteProps = { animation: string; variant: string; parentElement?: HTMLElement; options?: { color?: string; size?: string; speed?: string; show?: boolean; ariaLabel?: string; }; }; export declare class Animarte { #private; constructor(props: AnimarteProps); static set globalColor(newGlobalColor: string); static get globalColor(): string; static set globalSize(newGlobalSize: string); static get globalSize(): string; static set globalSpeed(newGlobalSpeed: string); static get globalSpeed(): string; animate({ animation: newAnimation, variant: newVariant, }: { animation: string; variant: string; }): void; get animation(): string; get variant(): string; set parentElement(newParentElement: HTMLElement); get parentElement(): HTMLElement; set color(newColor: string); get color(): string; set size(newSize: string); get size(): string; set speed(newSpeed: string); get speed(): string; set show(newShow: boolean); get show(): boolean; static globalSubscribe(event: EventName, fn: EventCallback): void; static globalUnsubscribe(event: EventName, fn: EventCallback): void; static globalNotify(event: EventName, data?: EventData): void; subscribe(event: EventName, fn: EventCallback): void; unsubscribe(event: EventName, fn: EventCallback): void; notify(event: EventName, data?: EventData): void; _setCSSVariables(html: HTMLElement): void; _createHTML(): HTMLDivElement; _styleHTML(html: HTMLElement): void; } export declare const animations: { animation: string; variant: string; children: number; }[]; export {};