沿着Y轴旋转的动画rotate3d在ios里不生效
发布于 6 年前 作者 ryi 4693 次浏览 来自 问答

反馈一个 Bug

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

var animation = wx.createAnimation()

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

this.setData({

animation: animation.export(),

})

3 回复

同遇到这个问题。

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>

没有,还是不转啊

回到顶部