fixed animation on firefox