微信小程序iOS端动画过渡属性失效,ps:android 和模拟器都正常

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

html部分

<view animation=“{{animationY}}” style=“position:fixed;left:150px;”>

<image class=“am-love” animation=“{{animationX}}” style=“position:fixed;top:139px;” src=“一张图片”>image>

view>

js 部分

Page({data:{   animationY:{},   animationX:{},},onShow:function(){  var animation = wx.createAnimation({        duration: 3000,      timingFunction: ‘ease-in’,      delay:1000,  })  this.animation = animation  animation.translate3d(150,220,220).width(30).height(30).step()  this.setData({    animationX:animation.export(),      })})

2 回复
caojuan
caojuan1 楼6 年前

你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

ezhong
ezhong2 楼4 年前

我也遇到这个问题, iphone 7, 11.4.1 动画无效果. 楼主找到解决方案了么