• Creates a MotionValue that updates when the velocity of the provided MotionValue changes.

    const x = useMotionValue(0)
    const xVelocity = useVelocity(x)
    const xAcceleration = useVelocity(xVelocity)

    Parameters

    Returns MotionValue<number>

Generated using TypeDoc