Intersection Observer v2 adds the capability to not only observe intersections per se, but to also detect if the intersecting element was visible at the time of intersection.
position: sticky and
IntersectionObserver together to determine when elements become sticky. Apply scroll effects without scroll events!
IntersectionObservers let you know when an observed element enters or exits the browser’s viewport.