Add transition callback.