react-flip-toolkit
react-flip-toolkit copied to clipboard
The staggerConfig parameter does not take effect
This is my demo code:
<Flipper flipKey={computing} staggerConfig={{ default: { speed: 0.1 } }}>
<Flipped flipId='animal' key='animal' stagger>
{computing ? <div className={style1} /> : <div className={style2} />}
</Flipped>
</Flipper>
expect: The animation's speed is slower. actual: The speed parameter does not take effect.
Hi LanFly,
I believe speed = 0.1
is the default config (you can see the props definition here).
In general, speed
is helpful for increasing the speed of stagger, but currently doesn't allow you to go much slower than the default.