简体   繁体   中英

Using Onsen UI, how to transition between pages using a Fade?

In Onsen UI ( http://onsenui.io/ ) the default transition for ons.screen.presentPage consists in a page moving from the bottom to the top. I have a special case where, just for one of the pages, I need the new page to appear with a Fade In. How can I change the default transition of presentPage for only one of the pages?

<!-- connect.html should fade in after a click on the button -->
<ons-button ng-click="ons.screen.presentPage('connect.html')">
    Next
</ons-button>

那不是在1.0中,但是我们在路线图中有它,并且api将是ons.screen.presentPage(url,{animation:'fade'}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM