Created
January 23, 2019 22:34
-
-
Save assassinave/cc75bbd4f64214e04b31ebc3b01b2928 to your computer and use it in GitHub Desktop.
Define a variable text value in Override to use in Design Component
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
// Allows you to define a static text value and apply the Override to any number of text objects on the canvas | |
// Make sure if writing from a clean file you have this import statement at the top to use an Override, etc | |
import { Data, animate, Override, Animatable } from "framer" | |
// Define the "const" name as you like and modify "Julie to any value you need | |
export const MyName: Override = () => { | |
return { | |
text: "Julie" | |
} | |
} | |
// Go to Canvas and select text layer. Apply your Override to the layer(s) and preview to view | |
// It does not render in the canvas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment