UNPKG

motion-plus-vue

Version:

Motion Plus Vue

11 lines (10 loc) 189 B
import { useTransform as u } from "motion-v"; function x(e, r) { return { x: u(() => e.x.get() + r.value.x), y: u(() => e.y.get() + r.value.y) }; } export { x as useOffset };