/ Published in: JavaScript
URL: http://james.padolsey.com/javascript/jquery-delay-plugin/
Swiped from here - http://james.padolsey.com/javascript/jquery-delay-plugin/
Expand |
Embed | Plain Text
$.fn.delay = function(time, callback){ // Empty function: jQuery.fx.step.delay = function(){}; // Return meaningless animation, (will be added to queue) return this.animate({delay:1}, time, callback); }
Comments
Subscribe to comments
You need to login to post a comment.

From here: http://p.karageorgakis.com/blog/jquerysimulatingadelayfunctionbetweenfadeinout_effects/
Revision: It's from here - http://james.padolsey.com/javascript/jquery-delay-plugin/
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...