masonry – images stacked/overlapped on each other

Masonry is a JavaScript grid layout library. It works by placing elements in optimal position based on available vertical space, sort of like a mason fitting stones in a wall. You’ve probably seen it in use all over the Internet.

I had to use imagesLoaded to solve my problem


$('.gallery-masonry').imagesLoaded( function(){
 itemSelector: '.item',
 isAnimated: true,
 isFitWidth: true

Leave a Reply

Your email address will not be published. Required fields are marked *