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>

23 lines (22 loc) 624 B
import { Options } from '../../types'; import { InertiaOptions } from 'framer-motion'; export interface StateHandlers { enable: VoidFunction; disable: VoidFunction; } export interface Gesture { isActive: (options: Options) => void; subscribe: (element: HTMLElement, stateHandlers: StateHandlers, options: Options) => () => void; } export interface DragOptions { constraints?: { top?: number; right?: number; bottom?: number; left?: number; }; dragSnapToOrigin?: boolean; dragElastic?: number; dragMomentum?: boolean; dragTransition?: InertiaOptions; }