Get transition classes early to use for removal.