observe

fun observe(target: Element)(source)

The observe() method of the IntersectionObserver interface adds an element to the set of target elements being watched by the IntersectionObserver.

MDN Reference