diff options
author | Karl Hallsby <karl@hallsby.com> | 2021-10-03 00:35:46 -0500 |
---|---|---|
committer | Karl Hallsby <karl@hallsby.com> | 2021-10-03 02:16:55 -0500 |
commit | e2c06d2681e18946ab6c3e3e6075aed92a4d13be (patch) | |
tree | b30dce94387f4717394277932f691519e0281c44 /assets/js/mansory.js | |
parent | a10ad0a99ba6e44a35253c3bcaff80c90e99348e (diff) |
Change to al-folio theme
Theme at: https://github.com/alshedivat/al-folio
Diffstat (limited to 'assets/js/mansory.js')
-rw-r--r-- | assets/js/mansory.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/assets/js/mansory.js b/assets/js/mansory.js new file mode 100644 index 0000000..054f3a0 --- /dev/null +++ b/assets/js/mansory.js @@ -0,0 +1,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'); + }); +}); |