0.2.0 • Published 2 years ago

resizing v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

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

0.2.0

2 years ago

0.1.0

4 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago