Как мне отложить анимацию с помощью jQuery?
Мне нужно получить навигацию, чтобы увеличить ширину, а затем увеличить высоту, а затем развернуть для обратной анимации.
Код:
$(function() {
$("#nav li").not("#logo, #nav li ul li").hover(function(){
$(this).animate({width:"200px"},{queue:false,duration:1000});
}, function(){
$(this).animate({width:"30px"},{queue:false,duration:1000});
});
$("#nav li.parent").hover(function(){
$(this).children("ul").animate({height:"40px"},{queue:false,duration:500});
}, function(){
$(this).children("ul").animate({height:"0px"},{queue:false,duration:500});
});
});