UNPKG

@formkit/auto-animate

Version:

Add motion to your apps with a single line of code.

8 lines (7 loc) 383 B
import { AutoAnimateOptions, AutoAnimationPlugin } from "../index"; /** * AutoAnimate hook for adding dead-simple transitions and animations to preact. * @param options - Auto animate options or a plugin * @returns */ export declare function useAutoAnimate<T extends Element>(options?: Partial<AutoAnimateOptions> | AutoAnimationPlugin): [Object<T>, (enabled: boolean) => void];