Motion Values » Chaining and Transforming Motion Values

Chaining and Transforming Motion Values BETA

The next hooks are not for triggering animations but for following a value (like a drag or scroll position): With useMotionValue(), you create a value that will follow the drag or scroll movement; And with useTransform(), you can then transform that value. (It resembles Classic’s Utils.modulate().) With these two, you can, for instance, transform a scroll position to an opacity value and make something […]
This page is only available to members.