Created
July 15, 2019 08:13
-
-
Save vincentmvdm/5d415b9bd1dfbb3813c1e34a6b30cce8 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
export function ArtistName(): Override { | |
const opacity = useTransform(scrollDistance, [0, -224], [1, 0]) | |
const scale = useTransform(scrollDistance, [0, -224], [1, 0.85]) | |
return { | |
opacity, | |
scale, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment