react-rewards icon indicating copy to clipboard operation
react-rewards copied to clipboard

Wow, that's fast!

Open B33fb0n3 opened this issue 10 months ago • 0 comments

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

B33fb0n3 avatar Aug 05 '23 12:08 B33fb0n3