Hum…really don’t know…
All I can say is that I have last version of ionic 1.1.0, last version of telerik plugin, last version of ionic-native-transitions, don’t have crosswalk, and there is my code:
$ionicNativeTransitionsProvider.setDefaultOptions({
duration: 400, // in milliseconds (ms), default 400,
slowdownfactor: 4, // overlap views (higher number is more) or no overlap (1), default 4
iosdelay: -1, // ms to wait for the iOS webview to update before animation kicks in, default -1
androiddelay: -1, // same as above but for Android, default -1
winphonedelay: 200, // same as above but for Windows Phone, default -1,
fixedPixelsTop: 0, // the number of pixels of your fixed header, default 0 (iOS and Android)
fixedPixelsBottom: 0, // the number of pixels of your fixed footer (f.i. a tab bar), default 0 (iOS and Android)
triggerTransitionEvent: ‘$ionicView.afterEnter’ // internal ionic-native-transitions option
});
Looks amazing- but I can’t get it working. Can anyone tell me where I went wrong?
Added added the “/ionic-native-transitions/dist/ionic-native-transitions.js” script to my index.html file (I had to load it after ionic.bundle.js). i did this because I didn’t understand how to get it working with ES5 (never done node.js/browsify)
Added it as a module, and added transitions to routing.
No errors encountered console says “nativepagetransitions is disabled or nativepagetransitions plugin is not present”. When I build (ios/xcode) the app only loads the menu bar & nothing else.
PS Is this plugin needed or does ionic now have this built-in?
In the end, I just added it in the config and call triggerAnimation on $ionicView.loaded. This automatically takes care of everything as Ionic already handles everything. We just need to over-ride css animations with this.