I have multiple functions the do different animations to different parts of the HTML. I would like to chain or queue these functions so they will run the animations sequenti
Instead of creating a function simple way is here:
$('#main').animate({ "top": "0px"}, 3000, function()
{ $('#navigation').animate({ "left": "100px"}, 3000, function()
{
alert("Call after first and second animation is completed.");
})
}
);
So, Jquery by default provide queue that execute function one by one.