两层coverview,子元素动画在安卓上很卡
发布于 5 年前 作者 yyu 7694 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

       两层coverview,子元素动画在安卓上很卡,苹果不卡,开发工具不卡

    测试机 小米9   红米K20PRO   魅族16S   IPHONE7PLUS

  • 提供一个最简复现 Demo

wxss

/* pages/test/test.wxss */
.qq1{
  width: 100%;
  height: 100%;
}
.qq2 {
  animation-duration: 5s;
  animation-name: donghua1;
  animation-fill-mode: forwards;
  width: 100rpx;
  height: 100rpx;
  background-color: red;
  border-radius: 50rpx;
}
 
[@keyframes](/user/keyframes) donghua1 {
  0% {
    margin-left: 100%;
  }
 
  100% {
    margin-left: 0%;
  }
}

wxml

<!--pages/test/test.wxml-->
<text>pages/test/test.wxml</text>
<cover-view class="qq1">
  <cover-view class="qq2"></cover-view>
</cover-view>
1 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部