Creates a MotionValue that updates when the velocity of the provided MotionValue changes.
MotionValue
const x = useMotionValue(0)const xVelocity = useVelocity(x)const xAcceleration = useVelocity(xVelocity) Copy
const x = useMotionValue(0)const xVelocity = useVelocity(x)const xAcceleration = useVelocity(xVelocity)
Generated using TypeDoc
Creates a
MotionValuethat updates when the velocity of the providedMotionValuechanges.