Make it bounce: useSpring
When an animation is tied into a user interaction, it sometimes feels more natural to not have an transition on that animation. That is why out of the box there’s no transition on a
For all other cases, we can use the
useSpring hook. This hook takes in a motion value and a spring configuration, allowing you to control how this value should change.