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
Post a Comment