swiper animate做的动画在安卓上有卡顿

qq_27882935 2016-02-17 11:27:05
楼主没玩过前端,刚使用swiper不久,就是用它来做一些微信上的产品宣传。 最近用swiper做了个项目,30几个slide,每个slide里面平均有四个动画,都是用swiper animate做的,总共有100多张图片,项目总大小5M多,但问题是,这个项目在PC端跑着不卡,在IOS上运行也还可以,只是在android手机上跑动画会卡得飞起(尤其是一个slide里有多个页面),请问是什么原因?如何解决?(注:项目最后是要跑在一个app上的,app会事先把它下载到本地,所以,应该和网络请求关系不大)
附其中一个slide的内容
<div class="swiper-slide">
<img full src="../resource/images/10022.png" style="position:absolute; left:0%;"></img>
<img full src="../resource/images/10023.png" class="ani" swiper-animate-effect="bounceIn" swiper-animate-duration="1s" swiper-animate-delay="1.4s" style="position:absolute; left:0%;"></img>
<img full src="../resource/images/10024.png" style="position:absolute; left:0%;"></img>
<img full src="../resource/images/10025.png" style="position:absolute; left:0%;"></img>
<img full src="../resource/images/10026.png" class="ani" swiper-animate-effect="fadeInLeft" swiper-animate-duration="0.5s" swiper-animate-delay="0.9s" style="position:absolute; left:0%;"></img>
<img full src="../resource/images/10027.png" class="ani" swiper-animate-effect="fadeInLeft" swiper-animate-duration="0.5s" swiper-animate-delay="0.6s" style="position:absolute; left:0%;"></img>
<img full src="../resource/images/10028.png" class="ani" swiper-animate-effect="fadeInLeft" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s" style="position:absolute; left:0%;"></img>
<img full src="../resource/images/10029.png" class="ani" swiper-animate-effect="fadeInLeft" swiper-animate-duration="0.5s" swiper-animate-delay="0s" style="position:absolute; left:0%;"></img>
<img id="arrow" src="../resource/images/icon_up.png" alt="" class="swiper-button-next arrow-up pt-page-moveIconUp">

</div>
谢谢!!
...全文
749 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
yt_1999 2017-12-14
  • 打赏
  • 举报
回复
请问楼主解决了吗?遇到同样的问题,安卓卡到吐血,求解决方法

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧