Transition style in Ionic 2?

Is it possible to control the navigation style in Ionic 2? (I.e. different animations, disabling animations, etc)?

Yes, you can pass a transition options arg to your navigation action. I’m not sure whether / where the available options are documented, but I found them in the source code, in addition to the ‘animate’ boolean for enabling / bypassing the animation completely.

var transitionOpts = {
    animation: opts.animation,
    direction: opts.direction,
    duration: opts.duration,
    easing: opts.easing,
    renderDelay: opts.transitionDelay || _this._trnsDelay,
    isRTL: _this.config.platform.isRTL()
};
1 Like