UNPKG

@kohlmannj/react-scroll-percentage

Version:

Monitor the scroll percentage of a component inside the viewport, using the IntersectionObserver API.

5 lines 245 B
export declare type WatcherCallback = () => void; export declare function watch(cb: WatcherCallback): void; export declare function unwatch(cb: WatcherCallback): void; export declare function destroy(): void; //# sourceMappingURL=scroll.d.ts.map