Cancelling transitions on callbacks

It'll be nice if we could cancel the transitions using the callbacks. Thanks.