Skip to content

bvaughn/element-resize-event

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

element-resize-event

Library to make it easy to listen for element resize events

Code borrowed from a blog post by backalleycoder.com.

Install

npm install element-resize-event

Usage

var elementResizeEvent = require('element-resize-event');

var element = document.getElementById("resize");

elementResizeEvent(element, function() {
  console.log("resized!");
  console.log(element.offsetWidth);
});

About

Library to make it easy to listen for element resize events

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.2%
  • HTML 8.1%
  • Makefile 4.7%