fix animation on Firefox