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>

21 lines (20 loc) 798 B
import { MaybeComputedElementRef } from '@vueuse/core'; /** * Get the actual motion element, skipping text and comment nodes * @param el - The HTML element to check * @returns The first non-text/comment element */ export declare function getMotionElement(el: HTMLElement | SVGElement | null): HTMLElement | SVGElement | undefined; /** * Get the actual element, skipping text and comment nodes * @param target - The element to check * @returns The first non-text/comment element */ export declare function getElement(target: MaybeComputedElementRef): HTMLElement | SVGElement; /** * Hook to get the motion element of current component instance * @returns Function that returns the motion element */ export declare function useMotionElm(): { value: HTMLElement | SVGElement | null; };