h***@gmail.com
h***@gmail.com
  • 发布:2020-03-28 18:04
  • 更新:2020-04-03 10:59
  • 阅读:1698

【报Bug】this.animate is not a function

分类:HBuilderX

问题描述

缺少 this.animate 方法的支持

复现步骤

startAnimate() {  
  uni.createSelectorQuery().select('#scroller').fields({  
    scrollOffset: true,  
    size: true,  
  }, (res) => {  
    this.animate('.index-page__logo', [  
      {  
        borderRadius: '0',  
        borderColor: 'red',  
        transform: 'scale(1) translateY(-20px)',  
        offset: 0,  
      }, {  
        borderRadius: '25%',  
        borderColor: 'blue',  
        transform: 'scale(.65) translateY(-20px)',  
        offset: .5,  
      }], 2000, {  
      scrollSource: '#scroller',  
      timeRange: 2000,  
      startScrollOffset: 0,  
      endScrollOffset: 85,  
    })  
  }).exec()  
}

预期结果

存在 this.animate 方法

实际结果
image

系统信息:

  • 发行平台: 微信小程序
  • 调试基础库 2.9.3
  • HBuilderX版本 2.6.5.20200314
  • 设备信息 微信开发者工具
2020-03-28 18:04 负责人:无 分享
已邀请:
h***@gmail.com

h***@gmail.com (作者) - 传说小白

@DCloud_heavensoft 请问这个是未支持还是什么问题啊?我各种搜索资料找不到uni相关的这个话题

DCloud_UNI_GSQ

DCloud_UNI_GSQ

目前其他平台未统一支持,可以先使用条件编译,单独在小程序平台使用 this.$scope.animate

该问题目前已经被锁定, 无法添加新回复