var that = this;
var animation = wx.createAnimation({
duration: 1000,
timingFunction: 'ease',
delay: 0
});
animation.translateX(-750).opacity(0).step()
this.setData({
ani: animation.export()
})
var that=this;
setTimeout(function(){
console.log("aa")
animation.translateX(0).opacity(1).step()
that.setData({
ani: animation.export()
})
},1000)
- THE END -
最后修改:2020年12月14日
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:https://www.95app.top/%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8fview%e5%8a%a8%e7%94%bb/