Created
May 22, 2019 16:40
-
-
Save ruucm-working/46c4f9914b6cfb664db035ad2776d744 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| --- a/adidas-landing.framerfx/code/App.tsx | |
| +++ b/adidas-landing.framerfx/code/App.tsx | |
| @@ -16,9 +16,19 @@ export function Scroll(): Override { | |
| }) | |
| } else if (showHeader == false && move > -40) { | |
| showHeader = true | |
| - await headerAnim.start({ | |
| + headerAnim.start({ | |
| top: 0, | |
| }) | |
| + await arrowAnim.start({ | |
| + bottom: 50, | |
| + transition: { | |
| + duration: 0, | |
| + }, | |
| + }) | |
| + | |
| + arrowAnim.start({ | |
| + bottom: 0, | |
| + }) | |
| } | |
| }, | |
| } | |
| @@ -32,3 +42,11 @@ export function Header(): Override { | |
| animate: headerAnim, | |
| } | |
| } | |
| + | |
| +var arrowAnim | |
| +export function Arrow(): Override { | |
| + arrowAnim = useAnimation() | |
| + return { | |
| + animate: arrowAnim, | |
| + } | |
| +} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment