我正在研究UI/UX中
Animated
库的能力,但在尝试设置动画序列的速度时遇到了问题。当屏幕上的一个项目被按下时,它会“弹出”。这个过程持续几秒钟,但我想加快速度。我以为我可以将Animated.timing...
添加到我的并行操作中,但我没有取得任何进展 :/Animated.parallel([
Animated.sequence([
Animated.spring(
this.state.enter,
{ toValue: 0.9, tension:40, friction: 2 }
),
Animated.spring(
this.state.enter,
{ toValue: 1, tension: 40, friction: 10 }
)
])
]).start();
仅供参考,this.state.enter
= new Animated.Value(0.1)