0

我尝试使用 Popmotion Pose for React 做一个简单的x过渡opacity,但我不知道如何删除默认的“弹性”(反弹?)效果。

    enter: {
      opacity: 1,
      x: 0,
      delay: 200,
      transition: {
        default: { type: 'tween', ease: 'easeOut', duration: 200 }
      }
    },
    exit: {
      opacity: 0,
      x: xExit,
      transition: {
        x: ({ from, to }) => ({
          type: 'keyframes',
          values: [from, -xExit, to],
          times: [0, 0.99, 1]
        }),
        opacity: ({ from, to }) => ({
          type: 'keyframes',
          values: [from, 0, to],
          times: [0, 0.99, 1]
        }),
        default: { duration: 200 }
      }
    }

大家知道怎么去掉吗?

4

0 回答 0