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

What is Framer? Join the Community
Return to index
Tojo Rakoto Ramanantsoa
Posted Nov 19 - Read on Facebook

Hi everyone.
Is there a way to listen to a "state" and to trigger something when the wanted state is active? Something like "When layer.state.current is thisState then do this Thing".
It's been a long time since I "framered", lot of things have changed :)
Thank you.


Benjamin Den Boer

Hiya Tojo Rakoto Ramanantsoa — for sure! :-)

if is "stateA"

Tojo Rakoto Ramanantsoa

Oh YES "". How dumb am I? Thank you so much Benjamin Den Boer.

Jordan Robert Dobson

myLayer.onStateSwitchEnd (from,to) ->
print from, to

Read the entire post on Facebook