translation在ios真机上没有过渡效果
发布于 6 年前 作者 rcao 14870 次浏览 来自 问答

在ios真机上

点击事件  ,isSend:true  然后没有1s的过渡效果

<view class=" translation1s {{isSend?‘smallRemark’:’’}}">

<text >AMG</text>

</view>

.translation1s {

-moz-transition: all 1s; /* Firefox 4 */

-webkit-transition: all 1s; /* Safari 和 Chrome */

-o-transition: all 1s;

transition: all 1s;

}

.smallRemark {

/* transition: all 1s; */

transform: translate(20%, -300%) scale(0.9);

-moz-transform: translate(20%, -300%) scale(0.9);

-webkit-transform: translate(20%, -300%) scale(0.9);

-o-transform: translate(20%, -300%) scale(0.9);

}

2 回复

确实是会有ios系统transition失效的情况,时好时坏,不知道是不是跟手机性能,内存使用情况有关,有没有大神遇到过,解答一下

可以做个代码片段不

回到顶部