title: Chain jQuery .addClass and .removeClass multiple times with delays
body: <p>I'm working with animate.css from <a href="https://github.com/daneden/animate.css" rel="nofollow">https://github.com/daneden/animate.css</a> and it provides just much better animations than jQuery does. I would like to chain animations and element changes with delays to fade an element in and out and change it's contents.</p>
  
  <p>The .queue method works for a single delay, but I need an efficient way to chain many .addClass, .removeClass and .html methods with a delay and the least possible syntax.</p>
  
  <p>Does anybody know how to do this?</p>
  
  <p><strong>Here's an example (doesn't work, but that's what it should be):</strong></p>
  
  <pre><code>$('div.text').delay(2000).addClass('animated fadeOutLeft').html('New content!').delay(2000).addClass('animated fadeInRight');
  </code></pre>
  
  <p>And that repeated many times with different content.</p>