Playground
Try to scroll or resize the container below, or scroll or resize the browser window, or zoom in and out the page.
Code
...
What for?
Mostly to stick together two unrelated elements that are children of different parent containers.
So that if one which is being observed changes its position, the other one moves along with it.