Fade in objects selected by class - Javascript jQuery Selector

Javascript examples for jQuery Selector:class

Description

Fade in objects selected by class

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.8.3.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){//w w  w  .j av  a2  s  . com
$('.home').fadeTo(0, 0).delay(1000).fadeTo(400, 1);
    });

      </script> 
 </head> 
 <body> 
  <div class="home"> 
   <h1>Home</h1> 
  </div> 
  <div class="home"> 
   <p>This is the home.</p> 
  </div>  
 </body>
</html>

Related Tutorials