fix animation in firefox