motion-v
Version:
<p align="center"> <img width="100" height="100" alt="Motion logo" src="https://user-images.githubusercontent.com/7850794/164965523-3eced4c4-6020-467e-acde-f11b7900ad62.png" /> </p> <h1 align="center">Motion for Vue</h1>
14 lines (13 loc) • 435 B
TypeScript
/**
* 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): HTMLElement;
/**
* Hook to get the motion element of current component instance
* @returns Function that returns the motion element
*/
export declare function useMotionElm(): {
value: HTMLElement | null;
};