jquery - How do you delay animations with .animate? -


i'm hacking fix jquery slide down jumps.

so far have:

 $div.hide().css({ height : 0 });  $div.show().animate({ height : height }, { duration: 1000 }); 

but want delay showing of teh div 1 second. i've tried .delay(1000) doesnt work.

thanks help.

you can use settimeout

settimeout(function(){   $div.show().animate({ height : height }, { duration: 1000 }); },1000);  // 1 second delay 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -