Adds transition to this.
transition
This function acquires a reference on transition that will be released when calling remove_transition.
a TransitionGroup
a Transition