小程序css动画安卓卡,ios不卡
发布于 6 年前 作者 zhengxiulan 17545 次浏览 来自 问答

一个简单的动画,ios不卡,安卓有明显的卡顿

.cir1{

animation:mymove 2s infinite;

}

.cir2{

animation:mymove2 2s infinite;

animation-delay: 0.5s;

}

.cir3{

animation:mymove3 2s infinite;

animation-delay: 1.1s;

}

@keyframes mymove{

from{

opacity: 1;

transform: scale(1,1)

}

to{

opacity: 0;

transform: scale(2.5,2.5)

}

}

@keyframes mymove2{

from{

opacity: 1;

transform: scale(1,1)

}

to{

opacity: 0;

transform: scale(2.5,2.5)

}

}

@keyframes mymove3{

from{

opacity: 1;

transform: scale(1,1)

}

to{

opacity: 0;

transform: scale(2.5,2.5)

}

}

3 回复

今天做了一个动画也是安卓卡顿,iOS正常,楼主的问题解决了吗

你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

这是关键帧动画?为什么不用动画api啊

回到顶部