沿着Y轴旋转的动画rotate3d在ios里不生效

发布于 8 年前作者 ryi4814 次浏览最后编辑 8 年前来自 ask

反馈一个 Bug

沿着Y轴旋转的动画rotate3d没有生效,但是安卓可以的

var animation = wx.createAnimation()

animation.rotate3d(0, 1, 0, 360).step()

this.setData({

animation: animation.export(),

})

3 回复
hluo
hluo1 楼6 年前

同遇到这个问题。

CSS:

.atest{

margin:100rpx;

height:100rpx;

width:100rpx;

background:red;

transform:translate3d(0,0,0);

    animation:rotate infinite 1s linear;

}

@keyframes rotate {

    0% {

    transform-origin:center;

    transform:rotate3d(0,1,0,0deg);

}

100% {

    transform-origin:center;

    transform:rotate3d(0,1,0,360deg);

}}

模版:

<view class=“atest”></view>

changlei
changlei2 楼6 年前

没有,还是不转啊

mingshen
mingshen3 楼6 年前

解决了吗