fix transitions on mobile safari