title: jQuery UI 1.8 and addClass / removeClass animation not working when in a timeout
body: <p>I have a page where I basically want an element to 'blink' for a certain amount of time and then go back to its initial state. Using jquery UI you can animate the addClass() and removeClass() methods:</p>
  
  <pre><code> $this.addClass('success', 400);
  </code></pre>
  
  <p>and then</p>
  
  <pre><code> setTimeout(function(){                 
  
       $this.removeClass('success', 400);
  
   }, 1000);
  </code></pre>
  
  <p>where the class 'success' has a </p>
  
  <pre><code>background-color: green 
  </code></pre>
  
  <p>The first works. But the removeClass() inside the setTimeout simply removes the class without doing ANY animation. What can this be caused by? </p>