layout-changes.js
Watch a DOM element's tree for layout changes and resizes, using a animationFrame (Shim) listener only until the element is on the DOM or event listener has been removed. May be used to handle layouts in which elements change frequently (CSS changes, content changes, images loaded, etc...)
Install
With npm:
# On your console, run npm install --save layout-changes
var layoutChanges = ; // ..
With bower:
# On your console, run bower install --save layout-changes
<!-- In your HTML file, add -->
var layoutChanges = windowLayoutChanges // ..
Usage
var layoutChanges = element = document; layoutChanges;
Methods
addListener(element, callback)
Add a listener to given element to trigger callbackremoveListener(element, callback)
Remove a previously assigned listener
Licence
Copyright (c) 2015 Kano Computing Ltd. - Released under the MIT license