title: Synchronize jquery animations in callback
body: <p>I have a <code>runner</code> function that should only return when all stuff (also animations) in the called callback are finished.</p>
  
  <pre><code>function runner(callback) {
    callback.call();
    return; // only return when callback is finished with everything.
  }
  </code></pre>
  
  <p>I thought about using the jQuery <code>queue</code> function, but I could not get it working. Is it even possible to archive that. <code>callback</code> is a blackbox. <code>runner</code> is not able to know whats going up in there.</p>