This is probably a sloppy way of tracking the animation. Use [animationend](http://www.w3.org/TR/css3-animations/#animationend) event instead.