Posted By

chelfers on 07/02/09


Tagged

javascript jquery delay


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

vali29
cmahoney
alejandrosuch


jQuery Delay


 / Published in: JavaScript
 

URL: http://blindsignals.com/index.php/2009/07/jquery-delay/

Delay all succeeding calls for x amount of time. Visit my blog and post a comment :D

  1. // example: after five seconds fade the element
  2.  
  3. $(selector).delay(5000).fadeOut('slow');
  4.  
  5. // example: after five seconds fade the element out and five seconds later fade it back in
  6.  
  7. $(selector).delay(5000).fadeOut('slow').delay(5000).fadeIn('slow');

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: cmahoney on July 27, 2009

Is this a plugin that you need, or has it been dragged into the jquery build? I only found this plugin page on the jquery site:

http://plugins.jquery.com/project/delay

You need to login to post a comment.