The Intersection Observer native API allows you to configure sort of callback that is called whenever one item, intersects the device viewport
In web development, a viewport is the visible area of a web page in a browser. It is the area that the user can see without scrolling. The viewport is determined by the size of the browser window, the zoom level, and the device's orientation.