ios端 wxss 中 animation无效
发布于 5 年前 作者 yan87 6775 次浏览 来自 官方Issues

在使用animation制作滑动进入的动画,代码如下,各页面在开发工具中表现正常。

[@keyframes](/user/keyframes) smoothin {

from {

opacity: 0;

transform: translate(0, 200rpx);

}


to {

opacity: 1;

transform: translate(0, 0);

}

}

在使用真机预览时,发现当设置编译模式使此页面(使用此动画的页面)为首页时,ios端表现正常,动画正常,当设置其他页面为首页时,进入此页面(使用此动画的页面)时,ios端动画失效。

.animate {

animation: 1s smoothin 3s forwards;

}

2 回复

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

用transition,在页面 onLoad里 setTimeout 3秒执行呢?

回到顶部