Untitled
t.infinitescroll({ navSelector : 'div#pagination', nextSelector : 'div#pagination a#nextPage', itemSelector : '.entry', loading: {/*Loading...*/ finishedMsg: '', img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif' }, bufferPx : 175, debug : false, }, // call masonry as a callback. function( newElements ) { var $newElems = $( newElements ); $newElems.hide(); // ensure that images load before adding to masonry layout $newElems.imagesLoaded(function(){ $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(1500);} ); }); }); });