Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The staggerConfig parameter does not take effect #194

Open
LanFly opened this issue Aug 31, 2022 · 1 comment
Open

The staggerConfig parameter does not take effect #194

LanFly opened this issue Aug 31, 2022 · 1 comment

Comments

@LanFly
Copy link

LanFly commented Aug 31, 2022

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.

@aholachek
Copy link
Owner

aholachek commented Sep 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants