Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70804

NativePageTransitions

$
0
0

@khalilghazal wrote:

I'm trying to change PageTransitions animation but i'm getting 2 animations at the same time : the original one and the new one using plugin.

Inside my controller :

   $scope.$on('$ionicView.enter', function (event, viewData) {
var transitionDirection = viewData.direction !== "back" ? "left": "right";
window.plugins.nativepagetransitions.slide({
     "direction": transitionDirection
    });
 });
         $scope.$on("$ionicView.leave", function(event, viewData){
         var transitionDirection = viewData.direction !== "back" ? "left": "right";
          window.plugins.nativepagetransitions.slide({
     "direction": transitionDirection
      });
 });

Anyone have any idea how to disable the first animation or how to solve this problem ?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70804

Trending Articles