The spatially resolved transition between star formation and quiescence