动画API

发布于 6 年前作者 pengjun720 次浏览最后编辑 6 年前来自 ask

var animation = wx.createAnimation({

duration: 500,

timingFunction: ‘ease’,

})

animation.top(‘-1rpx’).step()

this.setData({

xxdh: animation.export()

})

这是源码。  为什么在开发者工具上能看出动画,在手机上点10次  大概只有1次触发了动画,其余的没有动画就直接显示出来了

2 回复
azhang
azhang1 楼6 年前

是安卓和 ios 都这样吗

xiulan56
xiulan562 楼4 年前

IOS是这样,安卓没试