收藏
回答

animation在真机上无效,模拟器上可以

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug animation 客户端 6.7.3 2.4.0

- 当前 Bug 的表现(可附上截图)


- 预期表现


- 复现路径


- 提供一个最简复现 Demo


var option = {

duration: 1000,

timingFunction: 'ease-in'

}

var animation = wx.createAnimation(option)

animation.translateY(-100)

animation.opacity(0.5)

animation.step(option)

this.setData({

animation: animation.export()

})

setTimeout(res => {

animation.translateY(0)

animation.opacity(1)

animation.step(option)

this.setData({

animation: animation.export()

})

}, 1000)


回答关注问题邀请回答
收藏

3 个回答

  • 禾店短剧系统
    禾店短剧系统
    2021-06-18

    本地图片作 background-image 有bug。。应该是支持的,等修复吧。。修复前请改成网络图片,或者base64,或者image标签

    2021-06-18
    有用 1
    回复
  • 疯狂的小辣椒
    疯狂的小辣椒
    2018-11-12

    如果是ios12.0animation动画失效的问题,已修复,待版本更新上线,此类问题可通过搜索找答案


    2018-11-12
    有用
    回复 2
  • Mars
    Mars
    2018-11-12

    求官方人员解答下呀!

    2018-11-12
    有用
    回复
登录 后发表内容