Skip to content

Detects the any resizing of an DOM element in Meteor

Notifications You must be signed in to change notification settings

communitybuilders/resize-sensor-es6

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resize Sensor

Extracts the Resize sensor out of CSS Element Queries

Quick Use

const sensor = new ResizeSensor(element, () => {
	console.log('anything inside of element caused my size to change');
})

Remove the Listener

sensor.detach();

or

ResizeSensor.detach(element);

About

Detects the any resizing of an DOM element in Meteor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%