Skip to content

IntersectionObserver

Values

disconnect

let disconnect: WebAPI.IntersectionObserverAPI.intersectionObserver => unit

make

let make: (
~callback: WebAPI.IntersectionObserverAPI.intersectionObserverCallback,
~options: WebAPI.IntersectionObserverAPI.intersectionObserverInit=?,
) => WebAPI.IntersectionObserverAPI.intersectionObserver

observe

let observe: (
WebAPI.IntersectionObserverAPI.intersectionObserver,
WebAPI.DOMAPI.element,
) => unit

takeRecords

let takeRecords: WebAPI.IntersectionObserverAPI.intersectionObserver => array<
WebAPI.IntersectionObserverAPI.intersectionObserverEntry,
>

unobserve

let unobserve: (
WebAPI.IntersectionObserverAPI.intersectionObserver,
WebAPI.DOMAPI.element,
) => unit