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

Wow, that's fast! #97

Open
B33fb0n3 opened this issue Aug 5, 2023 · 0 comments
Open

Wow, that's fast! #97

B33fb0n3 opened this issue Aug 5, 2023 · 0 comments

Comments

@B33fb0n3
Copy link

B33fb0n3 commented Aug 5, 2023

Hey,

I use this package already for a long time, but in the meantime the animation speed increased. It's like it spead up to double so fast or even more. I thought about the config parameter "lifetime", but that just changes the lifetime not the animation speed lol.

This is my code:

           <Reward
                ref={ref}
                type='emoji'
                config={{
                    elementCount: 12,
                    angle: 80,
                    springAnimation: false,
                    emoji: rewardEmojis
                }}
            >
... some other Components...
            </Reward>

I call the methods like that box.target.checked ? ref.current.rewardMe() : ref.current.punishMe();

Well, am I missing something or do something wrong? How can I make the animation slower?
Look how fast

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

1 participant