Skip to content

Instantly share code, notes, and snippets.

@flowdee
Created December 28, 2014 11:24
Show Gist options
  • Save flowdee/b6e33d61d36bcb8323fa to your computer and use it in GitHub Desktop.
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.
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