useVelocity
useVelocity
accepts a motion value and returns a new one that updates with the provided motion value's velocity.
Usage
Import useVelocity
from Motion:
Pass any numerical motion value to useVelocity
. It'll return a new motion value that updates with the velocity of the original value.
Any numerical motion value will work. Even one returned from useVelocity
.
Motion is open source. Sponsorships keep the project sustainable.
Every sponsor receives access to our private Discord, and an exclusive mobile and desktop wallpaper pack.