Javascript examples for jQuery Selector:class
Fade in objects selected by class
<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>