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
.
A Motion+ membership will give you early access to features & content, access to our private Discord, and more.
It's a one-time fee that grants lifetime access. No subscription necessary!