Page Transition Animation in Ionic 2

后端 未结 2 1103
深忆病人
深忆病人 2021-01-13 23:01

I have simple tabs template Ionic 3 application in which, I am switching between the tabs whenever user swipes on view based on left or right I am switching between Tabs and

2条回答
  •  抹茶落季
    2021-01-13 23:21

    That's currently not possible with Ionic, but you can use this amazing plugin to achieve something like this:

    In order to install it, just run

    npm i --save ionic2-super-tabs
    

    And then import SuperTabsModule.forRoot() in your app's main module

    import { SuperTabsModule } from 'ionic2-super-tabs';
    
    @NgModule({
        ...
        imports: [
          ...
          SuperTabsModule.forRoot()
          ],
        ...
    })
    export class AppModule {}
    

    Now everything is ready, so in your view you can do something like this:

    
      
      
      
    
    

提交回复
热议问题