UNPKG

motion

Version:

The Motion library for the web

5 lines (4 loc) 506 B
import { RefObject } from "react"; import { AnimationOptionsWithOverrides, MotionKeyframes } from "../../dom/types"; import { AnimatedProps, AnimationContextProps, PoseActiveState } from "../types"; export declare function useViewport(ref: RefObject<Element>, target: MotionKeyframes, options: AnimationOptionsWithOverrides, { inViewport, poses, viewport, onViewportEnter, onViewportLeave, }: AnimatedProps, { inViewport: inheritedInViewport }: AnimationContextProps, isPoseActive: PoseActiveState): void;