Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: When NavOpts {animate: false} "back" button still animate transition #6635

Closed
escaroda opened this issue May 24, 2016 · 10 comments
Closed

Comments

@escaroda
Copy link

I'm trying to turn off all animations in my Ionic 2 app and I'm doing this with animate: false option inside nav controller. And it works but only when I go forward. When I click "go back" button (which is automatically generated for me) there are still animations goes on.
Is there any option that will turn if off too? Or I need to code all back buttons manually?

@jgw96
Copy link
Contributor

jgw96 commented May 24, 2016

Hey @speciose ! Thanks for opening an issue with us! It is currently not possible to turn off all animations in an Ionic 2 app, but it is definitely worth considering adding in the future. I'm gonna keep this issue open for now, but change it to a feature request. Thanks for using Ionic!

@jgw96 jgw96 changed the title [v2] When NavOpts {animate: false} "back" button still animate transition Feature: When NavOpts {animate: false} "back" button still animate transition May 24, 2016
@jgw96 jgw96 added the feature label May 24, 2016
@wouterDumon
Copy link

hi @jgw96 , we're having the same problem. we managed to lay off most animations by putting {animate:false} in the navController.pop() method also, though when pressing the hardware back button there's still an animation, navController.setTransition(false) doesn't seem to work either. Is there any update on this?

@jgw96
Copy link
Contributor

jgw96 commented May 31, 2016

@wouterDumon At the moment i do not have an update on this. I do have a question though, what is the use case behind turning off all animations?

@wouterDumon
Copy link

@jgw96 Since we have multiple kinds of navigation bars ( which we change with the current work-around: #5556 ), it acts strange on Ios ( first the animation then the navbar change) hence the removal of the animations.

@jgw96
Copy link
Contributor

jgw96 commented May 31, 2016

@wouterDumon Ok, thanks for the feedback! I will update this issue when i have a timeline on it. Thanks for using Ionic!

@jgw96
Copy link
Contributor

jgw96 commented Jul 18, 2016

Hello. We are not planning on adding a feature to turn off all animations at this time, also #5556 has been fixed, so everything should work as expected now. Thanks for using Ionic!

@jgw96 jgw96 closed this as completed Jul 18, 2016
@AhsanAyaz
Copy link
Contributor

Hi @jgw96.
I have a similar use case.
I have a bottom nav bar which has the next and previous buttons. Now if I keep pushing the pages on android, it obviously looks weird. Because the user would expect to slide the content above the bottom nav bar. But I decided to turn off animations when pushing and popping which looks way better.
Now the only thing is that hardware back button still does the pop animation. It would be really great if we could set that too in a component somehow to turn of this animation.

@tostavio
Copy link

tostavio commented Apr 11, 2018

Hi,
I have a smilar use case too.
My app have animations in slides, i can generate a custom back button in header. So, my app have slide animations in forward and back, but with smartphone back button, "hardware back button", the animation is not slide, it's a standard animation of fading with opacity.

As my app is for a discerning customer, it is bothered by the different animations.

How could I make the animation of the smartphone back button on slide back?

@ahamedthahaneenpm
Copy link

this.navCtrl.pop({
animate: false
});

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 1, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants