laidout

v1.1.0
Call a callback when an element has been laid out with css

laidout

What

Call a callback when an element has been laid out with css

Usage

var laidout = require('laidout');

laidout(someElement, function(){
    // called when the element is actually in the document
});

checkDisplay

Flag to also check that the element and it's parents are not display: none;

laidout(someElement, true, callback);
npm i laidout

Metadata

  • ISC
  • Whatever
  • Unknown
  • released 6/17/2016

Downloads

Maintainers