Created
December 28, 2014 11:24
-
-
Save flowdee/b6e33d61d36bcb8323fa to your computer and use it in GitHub Desktop.
Isotope sorting& filtering enhancements for Unveil Lazy Load: Add this three lines to refresh lazy load items and display them after sorting / filtering.
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 $iso = $('.container').isotope({ | |
itemSelector: '.item', | |
layoutMode: 'masonry', | |
}); | |
// Refresh lazy load | |
$iso.isotope('on', 'layoutComplete', function () { | |
$(window).trigger("scroll"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment