uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

this.animate is not a function

Open silent-tan opened this issue 6 years ago • 2 comments

问题描述

缺少 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
  • 设备信息 微信开发者工具

silent-tan avatar Mar 28 '20 09:03 silent-tan

@zhetengbiji @fxy060608 这里有计划支持吗

SuperJolly avatar Sep 05 '22 08:09 SuperJolly

@zhetengbiji @fxy060608 这里有计划支持吗

this.$scope.animate

zhetengbiji avatar Sep 05 '22 08:09 zhetengbiji