useMotionTemplate
useMotionTemplate
creates a new motion value from a string template containing other motion values.
Whenever a motion value within the string template updates, the returned motion value will update with the latest value.
Usage
Import from Motion:
useMotionTemplate
is a "tagged template", so rather than being called like a normal function, it's called as a string template:
This string template can accept both text and other motion values:
The latest value of the returned motion value will be the string template with each provided motion value replaced with its latest value.