import { NativePageTransitions, NativeTransitionOptions } from '@awesome-cordova-plugins/native-page-transitions/ngx';
constructor(private nativePageTransitions: NativePageTransitions) { }
...
ionViewWillLeave() {
let options: NativeTransitionOptions = {
direction: 'up',
duration: 500,
slowdownfactor: 3,
slidePixels: 20,
iosdelay: 100,
androiddelay: 150,
fixedPixelsTop: 0,
fixedPixelsBottom: 60
}
this.nativePageTransitions.slide(options)
.then(onSuccess)
.catch(onError);
}
openPage(page: any) {
this.nativePageTransitions.slide(options);
this.navCtrl.push(page);
}