UNPKG

@postnord/web-components

Version:
22 lines (21 loc) 1.04 kB
import { MixedInCtor } from '../../stencil-public-runtime'; /** Import the State and functions needed to easily animate the height of an element. */ declare function animateHeightFactory<B extends MixedInCtor>(Base: B): { new (...args: any[]): { animation: Animation; animationDurationDefault: number; animationDuration: number; isClosing: boolean; isExpanding: boolean; animateDropdown(element: HTMLElement, open: boolean, startHeight: string, endHeight: string): void; /** Open the dropdown by assigning the HTML element you want to animate. */ openDropdown(element: HTMLElement, heightOverride?: number): void; /** Close the dropdown by assigning the HTML element you want to animate. */ closeDropdown(element: HTMLElement, heightOverride?: number): void; animationFinish(element: HTMLElement): void; cancelAnimations(): void; setAnimationDuration(): void; isMoving(): boolean; }; } & B; export { animateHeightFactory };