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

What is Framer? Join the Community
Return to index
Rapha Ël
Posted Aug 01 - Read on Facebook

Hi guys :)
How can i block an element to a specific state (on click)

2 Comments

Rémy Saddour

globalement un truc du genre :

a = new Layer
width : 50
height : 50
x : 0
y : 0
backgroundColor : "red"

a.states.add("stateB", {x:300, y:300})

a.on Events.Click,->
a.states.switch("stateB")

Rapha Ël

Oui ! Merci Rémy ;) Thanks

Read the entire post on Facebook