Skip to content

Instantly share code, notes, and snippets.

@angjez
Created July 25, 2022 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angjez/eca442c4f6c496135aa26ee49255dda2 to your computer and use it in GitHub Desktop.
Save angjez/eca442c4f6c496135aa26ee49255dda2 to your computer and use it in GitHub Desktop.
const thumbsUp = useTransform(x, [15, 100], [0, 1]);
const thumbsUp2 = useTransform(x, [20, 100], [0, 1]);
const thumbsDown = useTransform(x, [-15, -50], [0, 1]);
const thumbsDown2 = useTransform(x, [-10, -100], [0, 1]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment