Add classes during transition so you can style based on templates.

Doesn't work without our branch of IR.