【发布时间】:2021-04-21 20:03:37
【问题描述】:
const AnimatedDonut = animated(Donut)
因为我认为<animated.div> 可以工作,但<animated.Donut> 不工作。
所以我尝试了:
https://codesandbox.io/s/weathered-breeze-ghdse
const AnimatedFoo = animated(Foo);
// ....
return <AnimatedFoo style={props}>I will fade in</AnimatedFoo>;
但它没有动画。它应该是它的工作方式吗?
【问题讨论】:
标签: reactjs react-spring