...
|
...
|
@@ -13,7 +13,7 @@ Component({ |
|
|
ready: function() {
|
|
|
let animation = wx.createAnimation({
|
|
|
duration: 400,
|
|
|
timingFunction: 'ease',
|
|
|
timingFunction: 'linear',
|
|
|
});
|
|
|
//放大缩小循环动画
|
|
|
var next = true;
|
...
|
...
|
@@ -22,7 +22,7 @@ Component({ |
|
|
animation.scale(1.05).step()
|
|
|
next = !next;
|
|
|
} else {
|
|
|
animation.scale(1).step()
|
|
|
animation.scale(1).step({duration:250})
|
|
|
next = !next;
|
|
|
}
|
|
|
this.setData({
|
...
|
...
|
|