@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
30 lines (29 loc) • 804 B
TypeScript
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;