Last active
October 13, 2015 10:02
-
-
Save alexbaumgertner/d459108cbaa0c4187ca0 to your computer and use it in GitHub Desktop.
Revisions
-
alexbaumgertner revised this gist
Oct 13, 2015 . 1 changed file with 19 additions and 21 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,6 @@ <script> $(document).ready( function() { var $grid = $('.row').masonry({ // main isotope options itemSelector: '.row__item', columnWidth: '.row__sizer', @@ -11,20 +9,20 @@ }); $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> -
alexbaumgertner renamed this gist
Oct 13, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
dmitrylebedev created this gist
Oct 13, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ <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(); }); }); </script> <script> new AnimOnScroll( document.getElementById( 'row' ), { minDuration : 0.4, maxDuration : 0.7, viewportFactor : 0.2 } ); </script>