Added addTransitionClass & switchClass.