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

What is Framer? Join the Community
Return to index
Veronica Jimenez-Miller
Posted Apr 05 - Read on Facebook

Hey framers! I want to add an state and set it as default. Do you know how can I do that? Thanks!

3 Comments

George Kedenburg III

try layer.states.switchInstant "newState"

Aalok Trivedi

you could just set up the layer with new values in the beginning somewhere:
layer.x = 100
layer.y = 100
layer.opacity = 1

layer.states.add
state1:
opacity: 0
x: 0, y: 0

**add event**
layer.states.next()

This will switch between state1 and your new defaults

Veronica Jimenez-Miller

Thank you! Will try these out

Read the entire post on Facebook