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

What is Framer? Join the Community
Return to index
Fran Pérez
Posted Dec 08 - Read on Facebook

Request: I think it would be useful something like:

layer.states.state("default").on "End", -> do something

3 Comments

John Anthony Evans

layer.on Events.StateDidSwitch, -> if layer.states.state == "End" then do something

Check the docs for the events, there is also a StateWillSwitch

Seoh Char

and you can also use layer.states.current. it's a same thing with layer.states.state.

Fran Pérez

Thanks John, as always ;)

Read the entire post on Facebook