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

What is Framer? Join the Community
Return to index
Peter Gr
Posted Dec 06 - Read on Facebook

Anyone recommend a concise explanation of how the new states API works? I seem to be getting errors when using this syntax:

layer.stateSwitch "stateA"

Same with:
layer.stateSwitch("stateA)

4 Comments

Jordan Robert Dobson

Did you use the latest Framer?

Is it an old or new project?

Jordan Robert Dobson

Double / Triple check and go to File > Update Framer

Peter Gr

thanks! thought I had updated, but will check again

Jordan Robert Dobson

Make sure Framer is up to date and your version of framer JavaScript Library. Two different things.

Read the entire post on Facebook