Skip to content

Instantly share code, notes, and snippets.

@assassinave
Created January 23, 2019 22:34
Show Gist options
  • Save assassinave/cc75bbd4f64214e04b31ebc3b01b2928 to your computer and use it in GitHub Desktop.
Save assassinave/cc75bbd4f64214e04b31ebc3b01b2928 to your computer and use it in GitHub Desktop.
Define a variable text value in Override to use in Design Component
// 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