Intersection Observer

Observes the first child element placed inside.

false

Can be used to watch many items, efficiently. Note that the first element to init’s top, right, bottom, left and threshold values will be used. We use -150 on the bottom here so you can see the observer working without needing dev tools.