让一个图片匀速转圈的动画在安卓上边正转完后倒转,不知道有没有人遇到过
animations:function(){
var animation = wx.createAnimation({
duration: 2000,
timingFunction: 'linear',
})
this.animation = animation
this.setData({
animationData: animation.export()
})
var n = 0;
setInterval(function () {
n = n + 1;
console.log(n);
this.animation.rotate(360 * (n)).step()
this.setData({
animationData: this.animation.export()
})
}.bind(this), 2000)
},
麻烦提供出现问题的机型和微信版本,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)