Detecting size and position change of a DOM element as a result of scroll, resize or zoom with IntersectionObserver.

I recently needed a solution to observe DOM element's position change in order to adjust another element accordingly, which might be placed beside as well as above or below the observed element. I did...