So I'm using the isotope masonry
layout
$('section').isotope({itemSelector:'article',layoutMode:'masonry',transformsEnabled: false, animationEngine: 'jquery',masonry:{columnWidth:8}});
The problem is that if I don't set the height for the article
in css, the layout doesn't look good the items overlap and stuff, but I can't set a fixed height for the elements, since they are blog posts and can change in size, do you guys have any tips on how to solve this?
Problem solved, you need to call $(window).load instead of $(document).ready(
var $container = $('#container').imagesLoaded( function() {
$container.isotope({
// options
});
});
See Isotope - imagesLoaded
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With