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

What is Framer? Join the Community
Return to index
Samuel Barbosa
Posted Aug 19 - Read on Facebook

Hello Everyone,

I wanted to fire a changing of state (like layer.states.next() ) when a state has finished to animate his properties. I have search on docs and played few hours but i'm still stuck. I wanted something like:

layers["Background"].on Events.Click, ->
layers["Icon Bar"].states.next()
# layers["Icon Bar"].states finish animation then fire
layers["Foo Bar"].states.next()

Has anyone an idea on this ?

2 Comments

Andreas Wahlström

layers["Icon Bar"].states.on Events.StateDidSwitch, () -> layers["Foo Bar"].states.next()

Samuel Barbosa

Great, I will try to make a cleared example of this, to make it shareable. Thanks.

Read the entire post on Facebook