Say I have 2 animation buttons on a page. A user clicks on the first animation and it animates into place. I have it so the animation opens up and it stays there until the user clicks on somewhere else on the page. But when the user clicks on another animation trigger button while the other animation is still up, everything screws up and both animations go at the same time :(. So how would I delay the other animation until the closing animation on the animation is done? Jsfiddle: http://jsfiddle.net/hBb9L/17/
$("#e").click(function (e) {
//done
$("#re").animate({
"margin-top": "104px"
}, 800);
$("#ret").animate({
"margin-top": "104px"
}, 800);
$(".popu").animate({
"margin-top": "-102px"
}, 800);
$("#s").show(200);
e.stopPropagation();