setInterval(function () {
n=n+1;
if(n!=4){
this.animation.rotate(45 * (n)).step();
if(this.data.down){
this.animation.height('250px').step();
this.animation.width('170px').step();
}else{
this.animation.height('220px').step();
this.animation.width('150px').step();
}
}
this.setData({
animationData4: this.animation.export()
})
}.bind(this), 1200);
<view class="hua4" animation="{{animationData4}}"></view>
<view class="hua" animation="{{animationData}}" ></view>
<view class="hua1" animation="{{animationData1}}" ></view>
<view class="hua2" animation="{{animationData2}}"></view>
<view class="hua3" animation="{{animationData3}}"></view>
https://developers.weixin.qq.com/s/CpH8ajma7myS
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。