Ionic Tabs animation


#1

Hi,

I’m trying to animate the ion-tab when the tabs changes (simple fade-in-out) but there doesn’t seems to be any way to do it now. There’s no references to any animation in the docs… I’ve tried using ngAnimate, but the ng-enter and ng-leave classes won’t be added there. Does somebody know what i’m missing?

Thanks!


#2

I suppose if you put an ion-view inside each tab, you could listen to the views’ lifecycle events and animate them via CSS when entering and leaving.

Never tested, but it’s worth a shot. Take a look at the lifecycle events in the docs: http://ionicframework.com/docs/api/directive/ionView/