我尝试使用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 }
}
}
你们知道如何删除它吗?