react-rewards
react-rewards copied to clipboard
Wow, that's fast!
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?