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>

15 lines (14 loc) 341 B
import { animationControls } from "./animation-controls.mjs"; import { onMounted, onUnmounted } from "vue"; function useAnimationControls() { const controls = animationControls(); let unmount; onMounted(() => { unmount = controls.mount(); }); onUnmounted(() => { unmount(); }); return controls; } export { useAnimationControls };