Fixed style attr not being removed after animation is complete