Hide or show an element with a delay - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:hide

Description

Hide or show an element with a delay

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.6.4.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){//from   ww  w .j  a va 2 s.  c  o m
window.setInterval(function(){
  $('.blink').toggle();
}, 250);
    });

      </script> 
   </head> 
   <body> 
      <pre class="blink">Blinking text!</pre>  
   </body>
</html>

Related Tutorials