@speaker-ender/react-scrollr
Version:
React tools for scroll animations
3 lines • 380 B
TypeScript
export declare type InViewCallback = (isIntersecting: boolean, threshold: number) => void;
export declare const useInViewTransition: (threshold?: number, untrackOnCallback?: boolean, callback?: InViewCallback, transitionStyle?: "fade-in" | "fade-up" | "fade-side" | "none") => [refCallback: (element: HTMLElement | null) => void];
//# sourceMappingURL=useInViewTransition.d.ts.map