框架类型 | 问题类型 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|
小程序 | Bug | 微信iOS客户端 | 7.0.15.1680 | 2.11.1 |
// 点击代码片段链接查看演示
// 利用createAnimation新建scale动画
// 在IDE和真机中,动画均没有生效
js:
const testScale = () => {
let animation = wx.createAnimation({
duration: 1000,
timingFunction: 'linear'
})
animation.scale(1).step()
return animation.export()
}
this.setData({
animationScale: testScale()
})
wxml:
点击这里开始测试