fixing animations on firefox