ons-tabbar lift animation
Guest last edited by Guest
how can I set ‘lift’ animation transition in tabbar setactivetab method? Based on documentation it would be possible to set it via option.animation param, but it doesn’t work.
@CsLaci Hi! I think ‘lift’ animation in tabbar is quite uncommon :confused:
Ours is a swiping tabbar so it doesn’t support other animations. However, if you really want it, you can remove
swipeableattribute, place a
ons-navigatorinside a tabbar page and then overwrite the click behavior of the tabs to load pages in the navigator. Something like this. This is not “official” behavior but it should work fairly well.
Guest last edited by
Hi Fran! I know it’s quite uncommon, I wouldn’t use it as a standard navigation method but like a status change for one tab page.
The tabbar + navigator method produces other - probably resolvable - problems like storing values in tabs on bringPageTop/pushPage, therefore i dropped my idea…
Many thanks for your efforts!
@CsLaci Perhaps you can use a
<ons-modal animation="lift">for your use case.