Created
May 22, 2019 16:40
-
-
Save ruucm-working/795a32f2a5cfed766f654fac2101c942 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 | |
| @@ -1,4 +1,4 @@ | |
| -import { Override, useAnimation } from 'framer' | |
| +import { Override, useAnimation, transform } from 'framer' | |
| // Override Docs: https://framer.com/docs/overrides | |
| window.log = console.log | |
| @@ -30,6 +30,14 @@ export function Scroll(): Override { | |
| bottom: 0, | |
| }) | |
| } | |
| + | |
| + // Label | |
| + label0Anim.start({ | |
| + top: transform(move, [-50, -400], [40, 40 + 350]), | |
| + transition: { | |
| + duration: 0, | |
| + }, | |
| + }) | |
| }, | |
| } | |
| } | |
| @@ -50,3 +58,11 @@ export function Arrow(): Override { | |
| animate: arrowAnim, | |
| } | |
| } | |
| + | |
| +var label0Anim | |
| +export function Label0(): Override { | |
| + label0Anim = useAnimation() | |
| + return { | |
| + animate: label0Anim, | |
| + } | |
| +} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment