setInterval(()=>{
var animation = uni.createAnimation({
duration:500,
delay:0,
})
if(num === -20){
num = 0
}else if(num ===0){
num = -20
}
this.animation = animation
animation.translateY(num).rotate(90).step()
this.animationData = animation.export()
}, 500)```
注意```if(num === -20){
num = 0
}else if(num ===0){
num = -20
}```
![Darly](https://img-cdn-tc.dcloud.net.cn/account/identicon/0bc0e24680c15838cc5be062fd1066d5.png)
Darly
- 发布:2019-08-02 10:22
- 更新:2019-08-02 10:22
- 阅读:6076
0 个评论
要回复文章请先登录或注册