简体   繁体   English

离子转换动画卡在/滞后在Android设备上

[英]Ionic transition animation stuck/lag on android devices

I am using ionic to develop web app. 我正在使用离子来开发Web应用程序。 In the app, after logging in, it redirects to a page containing ion-slides, but the transition is not smooth, it will stuck with a part of former page(the logging in page) still in screen, when I click the screen(maybe focus??) , the transition can be completed and the latter page will be in the screen totally. 在应用程序中,登录后,它将重定向到包含离子载玻片的页面,但过渡过程并不平滑,当我单击屏幕时,它将停留在仍在屏幕中的前一页(登录页面)的一部分中(可能是焦点?),则过渡可以完成,并且后一页将完全在屏幕中。

<ion-content scroll="false" class="myevents-content" ng-show="isCardViewer" ng-animate="'animate'">
    <ion-slides options="options" slider="$parent.slider" class="myevents-content-slider">

So is the problem related to the animation?? 那么这个问题与动画有关吗? And any idea to solve it? 有解决的主意吗? THX. 谢谢。

The best way to solve transition animation is to use this plugin 解决过渡动画的最佳方法是使用此插件

cordova plugin add https://github.com/Telerik-Verified-Plugins/NativePageTransitions#0.6.5

https://github.com/shprink/ionic-native-transitions https://github.com/shprink/ionic-native-transitions

Do not forget to add all the JS file after you install the plugin in yor index.html. 将插件安装在yor index.html中后,不要忘记添加所有JS文件。 It will work on on devices. 它将在设备上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM