No-Library (pure JS), HTML, CSS, JavaScript
An example of how to observe and react to changes in DOM elements
An example of how to observe property changes on JavaScript objects
How to use requestAnimationFrame to listen for property changes