<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()
})
},