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

What is Framer? Join the Community
Return to index
Alejandro Cámara López
Posted Oct 24 - Read on Facebook

Is it possible change a inside myLayer.states.add 'stateA', ?
Because if I write as I would when creating a new layer it shows me some errors.


Koen Bok

No, the state machine only accepts direct layer properties. What are you trying to switch between?

Alejandro Cámara López

I wanted a text to be bold when scale:1 and light when scaled-down.

Jeany Ngo

Hey Alejandro, did you ever figure out how to change the text? I'm struggling with this too

Benjamin Den Boer

You could change the font weight based on the current state of your layer:

Read the entire post on Facebook