stylehatch/photoset-grid

Photoset-grid with Paul Irish infinite-scroll?

sindreolsson opened this issue · 1 comments

Is there possible to make and introduction for this combination with a callback?
This information would be really helpful.

Best
Sindre

Honestly this would be more of a question about the infinite scroll plugin, but hopefully this will get you going with an idea of how it works:

$('#posts').infinitescroll({

  navSelector  : '.navigation',
  nextSelector : '.navigation a',
  itemSelector : '#posts article'

}, function(newElements){
  var $articles = $(newElements);
  // loop through each of the articles to apply the photoset grid

  $articles.each(function(){
    // do stuff
  });
});