Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite scroll #5

Closed
desandro opened this issue Mar 25, 2014 · 3 comments
Closed

Infinite scroll #5

desandro opened this issue Mar 25, 2014 · 3 comments

Comments

@desandro
Copy link
Member

Add docs for infinite scroll, currently missing in the v2 docs.

@desandro
Copy link
Member Author

desandro commented Apr 2, 2014

When using imagesLoaded, this callback will hide items, then reveal them after images have been loaded.

function( newElems ) {
  // initially hide new elements, and use imagesLoaded
  var $newElems = $( newElems ).hide().imagesLoaded( function() {
    // show when ready to reveal
    $newElems.show();
    $container.isotope( 'appended', $newElems );
  });
}

@Fortyfive
Copy link

Hi, until we have some v2 infinitescroll documentation, would you able to demonstrate where this code should be inserted in order to get infinite scroll working? This is my current code:

if($('.portfolio-section').length > 0){
var $container = $('.portfolio-section');
$container.imagesLoaded(function(){
$container.fadeIn(300).isotope({
itemSelector: '.portfolio-item',
masonry: {
columnWidth: '.grid-sizer',
gutter: '.gutter-sizer'
}
});
});
}

Thanks in advance!

@desandro
Copy link
Member Author

Infinite Scroll v3 has been released with direct integration via [outlayer option}(https://infinite-scroll.com/options.html#outlayer).

Tracking filtering + Infinite Scroll at metafizzy/isotope#1358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants