JQuery toggleClass with direction and animation - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:toggleClass

Description

JQuery toggleClass with direction and 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-git.js"></script> 
  <style id="compiled-css" type="text/css">

#logo{/*w w w.j  a va2s . c  o m*/
   display:none;
}


      </style> 
  <script type="text/javascript">
    $(function(){
$('#logo').delay(3000).fadeIn();
    });

      </script> 
 </head> 
 <body> 
  <img src="http://www.java2s.com/style/demo/Google-Chrome.png" id="logo">  
 </body>
</html>

Related Tutorials