react-flip-toolkit icon indicating copy to clipboard operation
react-flip-toolkit copied to clipboard

The staggerConfig parameter does not take effect

Open LanFly opened this issue 2 years ago • 1 comments

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.

LanFly avatar Aug 31 '22 04:08 LanFly

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.

aholachek avatar Sep 03 '22 13:09 aholachek