resizing
v0.2.0
Published
Detect DOM resizing
Downloads
2
Readme
Resizing
DOM resizing detector, 1kb after minified.
Install
npm install resizing --save
Usage
import Resizing from 'resizing'
const r = new Resizing(dom: Element)
function detector(evt: ScrollEvent) {
console.log('resizing!')
}
r.on(detector)
r.off(detector)
r.destroy()
Inspired by https://github.com/marcj/css-element-queries