UNPKG

animere

Version:
25 lines (24 loc) 758 B
/** * Detects whether the user agent is capable to scroll */ export declare const isCrawler: boolean; /** * Detects if the user has requested that the system minimizes the * amount of animation or motion it uses */ export declare const prefersReducedMotion: boolean; /** * Adds an animation class to an element and removes it after * the animation has finished * * Also adds a `<prefix>animated` class during the animation */ export declare function animate(element: HTMLElement, animation: string, prefix?: string): Promise<void>; /** * Convert a given string to camel case */ export declare function toCamelCase(value: string): string; /** * Convert a given string to kebab case */ export declare function toKebabCase(value: string): string;