fix transitions in firefox