UNPKG

@vuesax-alpha/nightly

Version:
30 lines (29 loc) 804 B
import type { ObjectDirective } from 'vue'; declare type AnimateName = string; export declare type AnimateOptions = { name: AnimateName; /** * Duration of the animation in milliseconds. */ duration?: number; /** * Delay in milliseconds before the animation starts. * * @default 0 */ delay?: number; /** * Number of times to repeat the animation. * * @default 1 */ repeat?: number | 'infinite'; type?: 'transition' | 'animation'; }; export declare type AnimateWithInOut = { in: AnimateOptions; out: AnimateOptions; }; export declare type AnimateDirectiveOptions = AnimateName | AnimateOptions | AnimateWithInOut; declare const Animate: ObjectDirective<HTMLElement, AnimateDirectiveOptions>; export default Animate;