fix Firefox animation bug

fix Firefox animation bug