useTransform creates a new motion value that transforms the output of one or more motion values.
const x = useMotionValue(1)
const y = useMotionValue(1)
const z = useTransform(() => x.get() + y.get()) // z.get() === 2useTransform creates a new motion value that transforms the output of one or more motion values.
const x = useMotionValue(1)
const y = useMotionValue(1)
const z = useTransform(() => x.get() + y.get()) // z.get() === 2