<wx-image :src="imgurl" class="rotate" :animation="animation"/>
created() {
this.animation1 = wx.createAnimation({
duration: 500,
timingFunction: 'linear',
delay: 0,
transformOrigin: '50% 50% 0',
success: function(res) {
console.log("res")
}
});
}
this.animation1.rotate(120 * (n)).step()
this.animation = this.animation1.export()
同问