微信小程序iOS端动画过渡属性失效,ps:android 和模拟器都正常
发布于 5 年前 作者 wfeng 16745 次浏览 来自 问答

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 回复

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

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

回到顶部