最新版:调用rotateY时,transform-style样式无效

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

wxml:

         

         

js:

onTranslate: function (event, duration) {

   this.animation.rotateY(this.data.coverShow ? 180 : 0).step({duration: 500});

   this.setData({

       coverShow: !this.data.coverShow,

       translateAnimation: this.animation.export(),

   })

}

wxss:

.flip{

  transform-style: preserve-3d;

  -webkit-transform-style: preserve-3d;

  position: relative;

   …

}

.a{background-color:red;}

.b{background-color:blue;}

以上代码在IDE上调试表现正常,真机上出现错误,调用rotateY反转后仍然显示view a(正常情况下,应该显示view b)

0 回复
暂无回复