How to queue an animation for multiple elements and wait until they finished?

Compact syntax with timing methods:

1 $('.many').animate(attributes,options,$).jQueryStuff();

The jQuery token $ is used instead of a callback function to indicate the timing version of animate().

Compare this to the old way with more syntactic fluff:

1 var waiting = $('.many').length;
2 $('.many').animate(attributes, options, function(){
3   if (!--waiting) {
4     $(this).jQueryStuff();
5   }
6 });

Similar patterns with animations