animate-height
Version:
Animate the height of an element to 'auto' or '0px'.
18 lines (17 loc) • 625 B
TypeScript
import Animator, { Options } from './animator';
/**
* Animate the height of an element to 'auto'.
*
* @param el - The element to animate
* @param options - Animation options
* @returns The height of the element after the animation completes.
*/
export declare const autoHeight: (el: HTMLElement, options?: Options | undefined) => Promise<number>;
/**
* Animate the height of an element to '0px'.
*
* @param el - The element to animate
* @param options - Animation options
*/
export declare const zeroHeight: (el: HTMLElement, options?: Options | undefined) => Promise<void>;
export { Animator as HeightAnimator };