Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
  
  <div id="container">
    
    <div>Hello</div>
    <div>Hello</div>
    <div>Hello</div>
    <div>Hello</div>
    <div>Hello</div>
    <div>Hello</div>
    <div class="hideme">Fade In</div>
    <div class="hideme">Fade In</div>
    <div class="hideme">Fade In</div>
    <div class="hideme">Fade In</div>
    <div class="hideme">Fade In</div>
     <div class="hideme">Fade In</div>
    <div class="hideme">Fade In</div>
    <div class="hideme">Fade In</div>
    <div class="hideme">Fade In</div>
    <div class="hideme">Fade In</div>
</div>
  
  </body>
<script src="https://code.jquery.com/jquery-2.0.3.js"></script>
</html>
 
#container
{
     
}
#container DIV
{ 
    margin:50px; 
    padding:50px; 
    background-color:lightgreen; 
}
.hideme{
display:none;}
 
$(document).ready(function() {
    
    /* Every time the window is scrolled ... */
    $(window).scroll( function(){
    
        /* Check the location of each desired element */
        $('.hideme').each( function(i){
            
            var bottom_of_object = $(this).offset().top + $(this).outerHeight();
            var bottom_of_window = $(window).scrollTop() + $(window).height();
            
            /* If the object is completely visible in the window, fade it it */
      if( bottom_of_window > bottom_of_object ){
/*  $(this).animate({'opacity':'1'},500); 
  */
        
 $(this).fadeIn('slow');
       
            }
            
        }); 
    
    });
    
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
amodokepro
0viewers