nuxt-anime
Version:
8 lines (7 loc) • 662 B
TypeScript
import type { JSAnimation, Timeline, AnimationParams, TimelineParams } from "animejs";
import { type ShallowRef } from "vue";
export declare const useAnimate: (target: ShallowRef<HTMLDivElement | null> | Readonly<ShallowRef<HTMLDivElement | null>> | globalThis.Ref<HTMLElement[] | undefined, HTMLElement[] | undefined>, params: AnimationParams) => Promise<import("vue").Ref<JSAnimation | undefined, JSAnimation | undefined>>;
export declare const useAnimateTimeline: (TimelineParams: TimelineParams, items: {
target: ShallowRef<HTMLElement | null>;
params: AnimationParams;
}[]) => Promise<import("vue").Ref<Timeline | undefined, Timeline | undefined>>;