Last active
October 13, 2015 10:02
-
-
Save alexbaumgertner/d459108cbaa0c4187ca0 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> | |
$(document).ready( function() { | |
var $grid = $('.row').masonry({ | |
// main isotope options | |
itemSelector: '.row__item', | |
columnWidth: '.row__sizer', | |
gutter: '.gutter-sizer', | |
percentPosition: true, | |
}); | |
$grid.imagesLoaded().progress( function() { | |
$grid.masonry(); | |
$(document).trigger('grid:masonry'); | |
}); | |
}); | |
</script> | |
<script> | |
$(document).on('grid:masonry', function() { | |
new AnimOnScroll( document.getElementById( 'row' ), | |
{ | |
minDuration : 0.4, | |
maxDuration : 0.7, | |
viewportFactor : 0.2 | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment