chore($animate): enable temporary classes to be applied during an animation

Closes #9493