fix anumation for firefox