I know how to wait till an animation is done with
$('#element').animate(speed,function(){
//code here
});
and with multiple elements with
$('#element1, #element2').promise().done(function(){
//code here
});
but how do I wait till all of the elements on the page are done animating? I would much rather not just put in every element that I'm waiting for in there.