ons-navigator and slide animation from right to left



  • With the ons-navigator, what value can I give to options.animation to have a slide from right to left (animator.pop and not animator.push) when using resetPage? It would be a popToPage functionnality which is needed in many cases…


  • Onsen UI

    @zabojad There’s no option for that but you can make a custom animator for this. This is an example in ES5. More info about custom animators here.



  • @Fran-Diox really, such basic configuration behavior should be supported without needing to make a custom animator… With the react bindings of Onsen UI, resetPageStack is our only way to make a “pop until” functionnality… And showing a pop animation rather than a push would be more logical in that case…

    Could this be added through a PR?



  • @Fran-Diox, I agree with @zabojad. May be a more specific slide-left, slide-right could be added besides the default slide option which can be kept for backward compatibility…


Log in to reply