Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49169

How to delay the changes of navbar when going to another view?

$
0
0

@distante wrote:

I'm using Native Page Transitions for a couple of "special" transitions (slide up) in a determinate view.

To avoid the default transition animation, I stop the regular animation programmatically before $state.go

$ionicHistory.nextViewOptions({
    			    disableAnimate: true
    			});
$state.go('app.browser', {externalURL: link.href});

then, in my controller I choose the animation I want with $ionicView.beforeEnter

$scope.$on('$ionicView.beforeEnter', function() {/ animate things on devices
            window.plugins.nativepagetransitions.slide(
              {"direction":"up"},
                    function (msg) {
                        console.log("success: " + msg);
                    },
                    function (msg) {
                        alert("error: " + msg);
                    }
            );
        });

It works but I see how the contents of <ion-nav-buttons> <ion-nav-title> changes before the animation gets triggered. Is there a way to delay this change?

I can control the speed of my animation, so if I can delay the change of contents then I can put it in the middle of the transition.

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>