I would like to set a custom page transition to fade for all routes, but only if it is on a computer and use the default if it is on a mobile or tablet.
Can this be done in the routes or do I have to do it on every router.navigate? Like this.
if (app.device.desktop){
mainView.router.navigate("/shop/", {ignoreCache: true, force:true, transition:'f7-fade'});
}else{
mainView.router.navigate("/shop/", {ignoreCache: true, force:true});
}
Thanks.