Define/call a function in isotope onLayout
问题 I'm using http://isotope.metafizzy.co/docs/options.html#onlayout and it says this: "Similiar to a callback, onLayout is a function that will be triggered after every time an Isotope instance runs through its layout logic." $('#container').isotope({ onLayout: function( $elems ) { // `this` refers to jQuery object of the container element console.log( this.height() ); // callback provides jQuery object of laid-out item elements $elems.css({ background: 'blue' }); } }); That means that when