summaryrefslogtreecommitdiff
path: root/assets/js/mansory.js
blob: 054f3a080ce007f1e6da2bcb571883ca8b9eb17f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$(document).ready(function() {
  // Init Masonry
  var $grid = $('.grid').masonry({
    gutter: 10,
    horizontalOrder: true,
    itemSelector: '.grid-item',
  });
  // Layout Masonry after each image loads
  $grid.imagesLoaded().progress( function() {
    $grid.masonry('layout');
  });
});