Fixed the animation in firefox