Javascript examples for jQuery Method and Property:delay
Delay for hover function in jquery
<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>