Intersection observer
Widely availableThe Intersection Observer API asynchronously observes changes in the intersection of a target element with an ancestor element or with a top-level document’s viewport.
Safari Browser
iOS
12.2
The Intersection Observer API asynchronously observes changes in the intersection of a target element with an ancestor element or with a top-level document’s viewport.