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

What is Framer? Join the Community
Return to index
Anthony Roscoe
Posted Oct 15 - Read on Facebook

Is there a way to see when an animation ends from a state switch?

3 Comments

Koen Bok

layer.on Event.StateDidSwitch, -> ...

Anthony Roscoe

Thanks! That's what I was doing. Turns out something else is wrong.

Blaine Billingsley

Would it be possible to get a little example on this with the (currentLayer, previousLayer) options at play? For some reason every time I've tried to use this I haven't gotten it to work. But I am VERY new to scripting languages so I probably am missing something obvious.

Read the entire post on Facebook