Skip to content

joe223/resizing

Repository files navigation

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

About

Detect DOM resizing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published