animation在真机上无效,模拟器上可以
- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
var option = {
duration: 1000,
timingFunction: ‘ease-in’
}
var animation = wx.createAnimation(option)
animation.translateY(-100)
animation.opacity(0.5)
animation.step(option)
this.setData({
animation: animation.export()
})
setTimeout(res => {
animation.translateY(0)
animation.opacity(1)
animation.step(option)
this.setData({
animation: animation.export()
})
}, 1000)