Load html animation - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:animate

Description

Load html animation

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.9.1.js"></script> 
  <style id="compiled-css" type="text/css">

.aa{width:100%; height:50px; background:red; display:none;}


      </style> 
  <script type="text/javascript">
    $(window).load(function(){/*from www. j av a2  s  . c  o  m*/
var page = $("<div/>").attr('id','page').text('test');
$(".aa").html(page).fadeIn('slow');
    });

      </script> 
 </head> 
 <body> 
  <div class="aa">
    aaa 
  </div>  
 </body>
</html>

Related Tutorials