Firefox animation fix