Created
July 25, 2022 14:30
-
-
Save angjez/6b5a8957f1627102a765c713b539d2f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const xInput = [-100, 0, 100]; | |
const color = useTransform(x, xInput, [ | |
theme.colors.pink, | |
theme.colors.orange, | |
theme.colors.green, | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment