{"name":"element-resize-event","version":"1.0.0","description":"Polyfill to make it easy to listen for element resize events","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/KyleAMathews/element-resize-event.git"},"keywords":["resize","event"],"author":{"name":"Marc J. Schmidt","email":"marc@jarves.io"},"license":"MIT","bugs":{"url":"https://github.com/KyleAMathews/element-resize-event/issues"},"homepage":"https://github.com/KyleAMathews/element-resize-event","gitHead":"dd115f3642b76093be01093afc478cc333a0495f","_id":"element-resize-event@1.0.0","_shasum":"a2ba7293ec1398a358cd0cab14286246e2f76a51","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"kylemathews","email":"mathews.kyle@gmail.com"},"maintainers":[{"name":"kylemathews","email":"mathews.kyle@gmail.com"}],"dist":{"shasum":"a2ba7293ec1398a358cd0cab14286246e2f76a51","tarball":"http://registry-npm.ywwl.com/element-resize-event/download/element-resize-event-1.0.0.tgz","integrity":"sha512-8c+rLmi2m1JbcVynLKMPVqf3IhALV7gq+D8Q4UUAHjeEeP3v7L0ViQpLHh8HhtI32BuZroLPt+gXm71Z3YhdJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICG3uaFf/jceVYxEHEoxfSmqFvF0+YpW48an8/baJULIAiAbi2eBiDMDqBQN6PBNpmfd01vSJBN/xuxLLkM3/EYmAA=="}],"size":9351,"noattachment":false,"key":"/element-resize-event/-/element-resize-event-1.0.0.tgz"},"directories":{},"readme":"# element-resize-event\n\nLibrary to make it easy to listen for element resize events\n\nCode borrowed from a [blog post by\nbackalleycoder.com](http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/).\n\n## Install\n\n`npm install element-resize-event`\n\n## Dependencies\n\nThis library depends on the availability of `requestAnimationFrame` and `cancelAnimationFrame`\n\n## Usage\n\n```javascript\nvar elementResizeEvent = require(\"element-resize-event\")\n\nvar element = document.getElementById(\"resize\")\n\nelementResizeEvent(element, function () {\n  console.log(\"resized!\")\n  console.log(element.offsetWidth)\n})\n```\n\n### Unbinding The Event Listener\n\n```javascript\nvar unbind = require(\"element-resize-event\").unbind\n\nunbind(element)\n```\n","publish_time":1412460449496,"_cnpm_publish_time":1412460449496,"dist-tags":{"latest":"3.0.6"}}