UseIntersectionObserver()
Signature
useIntersectionObserver: ({
onVisible,
onHidden,
options
}: UseIntersectionObserverParams, deps: unknown[]) => {
targetRef: react.RefObject<HTMLDivElement>;
}
Parameters
Parameter | Type | Description |
---|---|---|
{ onVisible, onHidden, options} | UseIntersectionObserverParams | |
deps | unknown[] |
Returns
{ targetRef: react.RefObject<HTMLDivElement>; }