Last active
October 25, 2017 17:29
-
-
Save Drixled/e8ad9b09126e71610c31803ca5c4451e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.2/isotope.pkgd.js"></script> | |
<script src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $grid = $('.grid').isotope({ | |
itemSelector: '.grid-item', | |
masonry: { | |
horizontalOrder: true, | |
} | |
}); | |
$grid.imagesLoaded().progress(function() { | |
$grid.isotope('layout'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment