Logo

Propserver

A responsive way to observe properties in JavaScript

What is it good for? Sometimes you want to be notified on each frame about a property change so you can handle things in a more responsive way. Consider when you have an element on a page, and you want to check its offsetTop property so you know when the element is inside/outside the viewport. You can observe the element's offsetTop with propserver and be notified when it changes.