jquery - div's not fading in on scroll -


i have fiddle , appears work fine, when implement new blank project hidden div s no longer fading in. there i'm missing or not adding?


html

<div id="container">   <div>hello</div>   <div>hello</div>   <div class="hideme">fade in</div>   <div class="hideme">fade in</div> </div> 

jquery

$(document).ready(function() { $(window).scroll( function(){      $('.hideme').each( function(i){         var bottom_of_object = $(this).position().top + $(this).outerheight();         var bottom_of_window = $(window).scrolltop() + $(window).height();           if( bottom_of_window > bottom_of_object ){             $(this).animate({'opacity':'1'},500);              }       });  });   }); 


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -