<view animation="{{animation}}"></view>
Page({
data:{
animation:''
},
onReady:function(){
this.animation=wx.createAnimation({
duration:1000,
timingFunction:'linear',
delay:100,
transformOrigin:'left top 0',
success:function(res){
console.log(res)
}
})
this.animation.rotate(150).step().translate(100).step({})
this.setData({
animation: this.animation.export()
})
},
小程序animation
猜你喜欢
转载自blog.csdn.net/weixin_43099985/article/details/82899853
今日推荐
周排行