I\'ve got something I\'ve put together using jQuery isotope here.. http://jsbin.com/eziqeq/6/edit
It seems to work in general but on first load, of a new tab, the Is
There is another option to solve this issue. You have to use another one js if your grid-item
contain any image
. below the js link is
Then call this placeholder js below:
/*=============Code for Masonry Gallery ==============*/
var grid = document.querySelector('.grid');
var jQuerygrid = jQuery('.grid').isotope({
itemSelector: '.element-item'
});
var iso = jQuerygrid.data('isotope');
jQuerygrid.isotope( 'reveal', iso.items );
imagesLoaded(grid, function(){
iso.layout();
});
You can get full and clear details from isotop's official website. link