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

What is Framer? Join the Community
Return to index
Tiffany Kosa
Posted Aug 01 - Read on Facebook

This doesn't work. Does anyone know how I can wrap the states in a function so that it can be applied globally?

2 Comments

Davo Galavotti
Aalok Trivedi

Try something like this

globalState = (layer) ->
layer.states =
active:
scale:1
Inactive:
scale:0

layer.stateCycle("active", "inactive")

box.onClick ->
globalState(@)

Read the entire post on Facebook