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

What is Framer? Join the Community
Return to index
Julio Radesca
Posted Jun 10 - Read on Facebook

Quick question:
Say I add states to a layer:
layerA.states.add
A: {width: 100}
B: {width: 150}
C: {width: 200}

Then I switch to one of the added states:
layerA.states.switch("B")

How do I switch back to the initial state, the one that no name was given?

2 Comments

Benjamin Den Boer

Hey Julio - the initial state is called "default" → layerA.states.switch("default") will do the trick.

Julio Radesca

Awesome. Thks Ben!

Read the entire post on Facebook