jQuery queue\'s are very annoying - I can\'t get my head around it...
The following function contains 4 animations which I want to happen one after the other (not at
Try using jQuery promise API. You can pull the promise from each jQuery element and then attach a done callback to it.
For example,
$("#header").animate({"opacity":"1"},{duration:3000 }).promise().done(function () {
$("#header").animate({ "top":"0px" },{ duration:3000 });
});
You can refer to jQuery's promise API for more information. http://api.jquery.com/promise/