GreenRoots Demo Lab

Resize Observer API

The Resize Observer API provides a performant mechanism by which code can monitor an element for changes to its size, with notifications being delivered to the observer each time the size changes.

Drag me to resize the button
(minimum: 60px) 500px
80px