@speaker-ender/react-scrollr
Version:
React tools for scroll animations
4 lines • 395 B
TypeScript
export declare type InViewCallback = (isIntersecting: boolean, threshold: number) => void;
export declare type IInViewState = ReturnType<typeof useInViewState>;
export declare const useInViewState: (threshold?: number, untrackOnCallback?: boolean, callback?: InViewCallback) => [refCallback: (element: HTMLElement | null) => void, isInView: boolean];
//# sourceMappingURL=useInViewState.d.ts.map