Added callback for transitionClass methods.