summaryrefslogtreecommitdiff
path: root/assets/js/mansory.js
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2021-10-03 00:35:46 -0500
committerKarl Hallsby <karl@hallsby.com>2021-10-03 02:16:55 -0500
commite2c06d2681e18946ab6c3e3e6075aed92a4d13be (patch)
treeb30dce94387f4717394277932f691519e0281c44 /assets/js/mansory.js
parenta10ad0a99ba6e44a35253c3bcaff80c90e99348e (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.js12
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');
+ });
+});