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+ examples
Motion+ is a one-time payment, lifetime membership that gains you access to the source code of an ever-growing library of premium examples, as well as premium components like Cursor
and AnimateNumber
.