UNPKG

vue-move-directives

Version:

A set of Vue 3 directives to animate elements moving to other elements.

18 lines 607 B
import { Emitter } from "mitt"; import { Directive } from "vue"; type TimingFunctions = 'ease' | 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out' | string; export interface MoverOptions { target: string | ((e: MouseEvent) => string); afterClick: (e: MouseEvent) => any; transition?: { durationMs?: number; timingFunction?: TimingFunctions; zIndex: number; }; deleteAfterFinish?: boolean; } export declare const mover: (emitter: Emitter<any>) => Directive<HTMLElement & { _cleanup?: () => void; }, MoverOptions>; export {}; //# sourceMappingURL=mover.d.ts.map