UNPKG

motion-v

Version:

<h1 align="center"> <img width="35" height="35" alt="Motion logo" src="https://github.com/user-attachments/assets/00d6d1c3-72c4-4c2f-a664-69da13182ffc" /><br />Motion for Vue</h1>

9 lines (8 loc) 363 B
import { AnimationPlaybackControls } from 'motion-dom'; import { Ref, UnwrapRef } from 'vue'; import { createScopedAnimate } from 'framer-motion/dom'; type Scope = Ref<UnwrapRef<Element>> & { animations: AnimationPlaybackControls[]; }; export declare function useAnimate<T extends Element = any>(): [Scope, ReturnType<typeof createScopedAnimate>]; export {};