Skip to content

Instantly share code, notes, and snippets.

@ruucm-working
Created May 22, 2019 16:40
Show Gist options
  • Select an option

  • Save ruucm-working/795a32f2a5cfed766f654fac2101c942 to your computer and use it in GitHub Desktop.

Select an option

Save ruucm-working/795a32f2a5cfed766f654fac2101c942 to your computer and use it in GitHub Desktop.
--- 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