jquery queue problem..
Posted
by user344862
on Stack Overflow
See other posts from Stack Overflow
or by user344862
Published on 2010-06-02T16:56:42Z
Indexed on
2010/06/02
17:04 UTC
Read the original article
Hit count: 208
jQuery
$(".menu-container").animate({top:"25px"});
$(".menu-container").animate({top:"-900px"});
$(".windows-container").animate({top:"-730px"});
hello sir.. i got a problem on queue in jquery.. what i want to do is
$(".menu-container").animate({top:"25px"}); ----execute first then after this,
$(".menu-container").animate({top:"-900px"}); --this one and
$(".windows-container").animate({top:"-730px"}); --this one should execute at the same time..
i tried this but its not functioning..
$(".menu-container").queue(function(){
$(".menu-container").animate({top:"25px"});
$(".windows-container").animate({top:"-730px"});
$(".menu-container").animate({top:"-900px"});
});
© Stack Overflow or respective owner