fix($animate): ensure addClass/removeClass animations do not snap during reflow

Closes #4892