Delay for hover function in jquery - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:delay

Description

Delay for hover function in jquery

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

#test{//from  www  . j a v a  2  s  .c o m
   background:red;
   width:200px;
   height:400px;
   display:none;
}


      </style> 
  <script type="text/javascript">
    $(window).load(function(){
$('#test').slideDown(500).delay(3000).slideUp(500);
    });

      </script> 
 </head> 
 <body> 
  <div id="test"></div>  
 </body>
</html>

Related Tutorials