Modify Transition.prototype.advance
Modify Transition.prototype.retreat