dom-resize-observer
v1.0.1
Published
DOM elements resize observer.
Downloads
3
Readme
dom-resize-observer
DOM elements resize observer.
Install
$ npm install --save-dev dom-resize-observer
Usage
import DOMResizeObserver from 'dom-resize-observer';
const resizeObserver = new DOMResizeObserver(entries => {
for (let entry of entries) {
console.log('DOMResizeObserver', entry);
}
});
resizeObserver.observe(document.getElementById('div'));