Match and track the position of two elements

a good approach will be to track the element only when activ. a continous check will block browser resources unnecessarily.

two possibilities:

  1. use a mutation observer to check for attribute/style-changes. @MaxZieb provided a extension to simplify … Hype MutationObserver

  2. the easing can be a function. this can be used as a hook … to track and match changes