cover-image组件使在真机上没有过渡动画

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

cover-image组件使用动画过渡,在真机上没有过渡,直接跳到最终形态,在开发工具上正常。

示例代码:

<cover-image animation=“{{animationData}” style=“” class=“qiqiu” src=“…/assets/qiqiu.png” alt=“” />

var animation = wx.createAnimation({

    duration: 5000,

    timingFunction: “ease”,

    delay: 0

})

animation.scale(2,2).step()

this.setData({

      animationData:animation.export()

})

1 回复
duanyong
duanyong1 楼4 年前

你好,麻烦提供相关的代码片段( https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html