JQuery fadeOut and fadeIn - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:fadeOut

Description

JQuery fadeOut and fadeIn

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <script src="https://code.jquery.com/jquery.min.js" type="text/javascript"></script> 
      <script type="text/javascript">
    $(document).ready(function() {
        $('#clickme').click(function() {
          $('#book').fadeOut(500, function() {
            $('#book').fadeIn(500);
          });/*from w ww. j  a  v a2s  .c o m*/
        });
    });
    
      </script> 
   </head> 
   <body> 
      <h1 id="book">this is book tag</h1> 
      <button id="clickme">button here</button>  
   </body>
</html>

Related Tutorials