关于小程序的动画 animation

clipboard.png

请问一下 什么创建一个动画的时候 会有 transform 为none
就是这个才导致了我的弹层倾斜

以下是我的代码【wepy】:

  show ({ message, duration }) {
        this.toastMessage = message;
        this.toastVisible = true;
        let animation = wx.createAnimation({
            duration: 400,
            delay: 0,
            timingFunction: 'linear',
        });
        animation.opacity(1).step();
        this.animationData = animation.export();
        this.$apply();
        // this.toast(duration);
    }
阅读 1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题