Skip to content

Commit

Permalink
Another script change
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Burnham committed Feb 13, 2021
1 parent 1834be0 commit 31e08ba
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,13 @@ <h1 class="fw-bold em-tight text-light">Photographs</h1>
<script src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script>
<script>
// init Masonry
var $grid = $('.grid').imagesLoaded( function() {
// init Masonry after all images have loaded
$grid.masonry({
// options...
});
});
var $row = $('.row').masonry({
// options...
});
// layout Masonry after each image loads
$grid.imagesLoaded().progress( function() {
$grid.masonry('layout');
});
</script>
</body>
</html>

0 comments on commit 31e08ba

Please sign in to comment.