onReady: function () {
this.animation = wx.createAnimation({
duration: 100,
timingFunction: 'linear',
delay: 10,
transformOrigin: '50% 0 0'
})
},
onShow: function () {
let next = true;
setInterval(function () {
if (next) {
this.animation.scale(0.9).step();
next = !next;
} else {
this.animation.scale(1).step();
next = !next;
}
this.setData({ //输出动画
animation: this.animation.export()
})
}.bind(this), 500)
},
animation-放大缩小
猜你喜欢
转载自blog.csdn.net/RreamigOfGirls/article/details/130720089
今日推荐
周排行