Legally Dope
Michael,
August 13th,
Happy go lucky guy,
Welcome to my imagi.nation
Home   ▲       ▲   Ask me anything    ▲   Submit
TotallyLayouts has Tumblr Themes, Twitter Backgrounds, Facebook Covers, Tumblr Music Player and Tumblr Follower Counter
his).find('.center-middle').css({'position': 'absolute','top': ($(this).height()/2 - $(this).find('.center-middle').height()/2)+'px', 'left': ($(this).width()/2 - $(this).find('.center-middle').width()/2)+'px'}); $(this).find('.boxhover').css({'display':'none','visibility':'visible'}).fadeIn(); }); $('div.box').live('mouseleave',function(){ $(this).find('.boxhover').fadeOut(); }); $('.header .readmore').click(function(){ if($(this).hasClass("up")){ $(this).removeClass("up"); $('.header-more').slideUp(); } else{ $(this).addClass("up"); $('.header-more').slideDown(); } }); // endless scrolling var $container = $('#allposts'); $container.imagesLoaded(function(){ $container.masonry({ itemSelector: '.box' }); }); $container.infinitescroll({ navSelector : 'div.navigation', // selector for the paged navigation nextSelector : 'div.navigation a#nextPage', // selector for the NEXT link (to page 2) itemSelector : '.box', // selector for all items you'll retrieve bufferPx: 0, debug : true, loading: { finishedMsg: 'No more posts to load.', img: '', msgText: 'Loading' } }, // trigger Masonry as a callback function( newElements ) { // hide new items while they are loading var $newElems = $( newElements ).css({ opacity: 0 }); // ensure that images load before adding to masonry layout $newElems.imagesLoaded(function(){ // show elems now they're ready $newElems.animate({ opacity: 1 }); $container.masonry( 'appended', $newElems, true ); }); } ); // End of endless scrolling });
TotallyLayouts has Tumblr Themes, Twitter Backgrounds, Facebook Covers, Tumblr Music Player and Tumblr Follower Counter