12th January 2010 0

How to: Delay with jQuery

While building my site, I encountered an instance which required a ‘wait’ or ‘delay’ function. Unfortunate, until I came across this light-weight and plug-in-free solution:

.animate({opacity: 1.0}, 3000);

(Where 1000 is the time-length [in milliseconds] you want to wait for).

 

Comments

  1. Boy, oh boy

    So this is what happens when you have an unpopular blog… Quick, leave a reply to stop me from talking to himself.

Respond

(kept away from bad guys)
(optional)

Your internet browser is ruining your web experience

Upgrade Internet Explorer now