a good approach will be to track the element only when activ. a continous check will block browser resources unnecessarily.
two possibilities:
-
use a mutation observer to check for attribute/style-changes. @MaxZieb provided a extension to simplify … Hype MutationObserver
-
the easing can be a function. this can be used as a hook … to track and match changes