resizing
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i resizing

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

5.48 kB

Total Files

7

Last publish

Collaborators

  • joe223