supermatech.com
[3 min read] Understanding of JavaScript with the Intersection Observer Web API | Supermatech
In short, it enables you to detect the visibility of an element, i.e. if it’s in the current viewport, and also the relative visibility of two elements in relationship to each other.