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

What is Framer? Join the Community
Return to index
Pat White
Posted Jun 01 - Read on Facebook

Hello!

Is it possible to change the color of a TextLayer?

Button.on Events.Click, () ->
Text_1.color = new Color("yellow")

When I click on a button I'm expecting the text color to change to yellow, but it does not.

5 Comments

Oleksii Pishtar

text=new TextLayer
color:"red"

Oleksii Pishtar

layer.onClick (event, layer) ->
text.color="red"

Johann Kasuch
Aalok Trivedi

If you're creating the text layer through the Designer, events don't work on it. It's most likely a bug. Creating the text layer through framer code works fine https://screencast.com/t/Vzp44ZrYkEW

Pat White

Thanks for the replies! I think it's a bug. Inserting a text layer in the designer converts it to a normal layer when it should be a text layer.

Read the entire post on Facebook