@oku-ui/motion
Version:
A tiny, performant animation library for VueJS
19 lines (18 loc) • 682 B
TypeScript
import { AnimationPlaybackControls } from 'motion/react';
import { MotionProps } from '../state/types';
export declare function useAnimate(): {
animate: (el: any, props: Omit<MotionProps, "as" | "transition"> & {
transition?: ((index: number) => MotionProps["transition"]) | MotionProps["transition"];
}) => void;
scope: {
el?: any;
animations: {
[key: string]: AnimationPlaybackControls[];
};
registerElement: (el?: any) => void;
};
};
export type ElementOrSelector = Element | Element[] | NodeListOf<Element> | string;
export interface WithQuerySelectorAll {
querySelectorAll: Element['querySelectorAll'];
}