Hide and fade in - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:fadeOut

Description

Hide and fade in

Demo Code

ResultView the demo in separate window

<!doctype html>
<html>
 <head> 
  <meta charset="utf-8"> 
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 
  <script type="text/javascript">
            $(document).ready(function(){
                $("#header").hide();
               $("#header").fadeIn(2000);
            });//  w  w  w  .j  a  v  a 2  s .c  o  m
        
      </script> 
  <title>1</title> 
 </head> 
 <body> 
  <h1 id="header" align="center">Page content</h1> 
  <p align="center"> Footer </p>  
 </body>
</html>

Related Tutorials