update bg transition