fix background transition for firefox