Posted By

dougunderscorenelson on 04/27/09


Tagged

javascript textmate jquery function


Versions (?)

Who likes this?

10 people have marked this snippet as a favorite

Kraeved
talbs
indamix
LeeRJohnson
Hollow
oldmeaty
keith
masondixon
seanpowell
Beppoi


jQuery Delay


 / Published in: JavaScript
 

URL: http://james.padolsey.com/javascript/jquery-delay-plugin/

Swiped from here - http://james.padolsey.com/javascript/jquery-delay-plugin/

  1. $.fn.delay = function(time, callback){
  2. // Empty function:
  3. jQuery.fx.step.delay = function(){};
  4. // Return meaningless animation, (will be added to queue)
  5. return this.animate({delay:1}, time, callback);
  6. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: dougunderscorenelson on April 27, 2009

From here: http://p.karageorgakis.com/blog/jquerysimulatingadelayfunctionbetweenfadeinout_effects/

Posted By: dougunderscorenelson on April 27, 2009

Revision: It's from here - http://james.padolsey.com/javascript/jquery-delay-plugin/

Posted By: iroybot on April 27, 2009

there are also several pause()-Plugins out there. alternatively you could do something like $(obj).animate({opacity:1},2500); which would do a (useless) opacity-effect for the given 2.5 seconds...

You need to login to post a comment.