This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Scott Johnson
Posted Jun 18 - Read on Facebook

Does text created in the Design tab get the same properties as text created in Code tab? I'm trying to create a selected state that can toggle back and forth between regular and bold text using stateCycle but it doesn't seem to be working at all. Any help would be great!

3 Comments

Christian Poschmann

Also interested in a solution to this!

Scott Johnson

bump

Jonas Treub

The text created in design mode is not yet possible to change in code mode. If you create two text elements you can decide which one to show using some code. There is another hacky way of doing it. After targeting the text layer in code you can do the following:
textTarget.html = textTarget.html.replace("original", "new text")

We are going to improve this with a future release.

Read the entire post on Facebook