ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

feat: ion-tabs support navigation animation

Open HyperLife1119 opened this issue 4 years ago • 7 comments

Prequisites

Describe the Feature Request

let ion-tabs component support navigation animation, and supports routing navigation animation.

Describe the Use Case

Allow developers to customize the animation when tab switching.

<ion-tabs [animation]="animation"></ion-tabs>

Describe Preferred Solution

Add an animation property to the ion-tabs component.

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

HyperLife1119 avatar Jul 18 '21 08:07 HyperLife1119

I think this feature is very important, it can help developers achieve similar Android native view pager switching animation effect. Hope to see its implementation in the v6 version. @liamdebeasi

HyperLife1119 avatar Aug 04 '21 16:08 HyperLife1119

I also agree to have an animation in this component: currently content just pop in from nowhere when tab is tapped having no clue if it comes from left or right., which makes double thinking: Did a new page appear or I am still in same tabs page?

davideas avatar Jan 17 '22 11:01 davideas

Also interested in this feature. Would be nice if someone could look into it.

digaus avatar Feb 02 '23 22:02 digaus

Would love to be able to use this in my own apps as well.

tetsuwanadam avatar Oct 10 '23 16:10 tetsuwanadam

I would like a subtle version of this, which is perhaps different than the requests above.

Facebook has a subtle transition when switching tabs which comes in handy when you're viewing the same content in different tab stacks. In this GIF, we're looking at the Ionic page under both the home tab and the menu tab. The transition helps the user understand that the tabs have been changed. The direction of the transition depends on whether the new tab is to the right or left of the current tab.

facebook-tab-transition

WhatsThatItsPat avatar Oct 10 '23 22:10 WhatsThatItsPat

I'm not sure if this is related, but when using custom animations with <ion-router-outlet [animation]="customPageAnimation"> inside <ion-tabs>, the function never gets called. Adding a debugger; statement or console.log for debugging in my customPageAnimation function doesn't trigger. Brand new project using angular 18 and ionic 8.

singatias avatar Sep 15 '24 20:09 singatias

I'm not sure if this is related, but when using custom animations with <ion-router-outlet [animation]="customPageAnimation"> inside <ion-tabs>, the function never gets called. Adding a debugger; statement or console.log for debugging in my customPageAnimation function doesn't trigger. Brand new project using angular 18 and ionic 8.

I have just spent some time trying to make it work with no success.

Trevor-143 avatar Dec 01 '25 08:12 Trevor-143