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

What is Framer? Join the Community
Return to index
Will Clark
Posted Nov 17 - Read on Facebook

Is it possible to have a call back for Events.AnimationEnd when changing the state of a layer? In other words, call a function when the state switch ends?

I tried this and it's not working: image.on(Events.AnimationEnd, details.states.switch("show"))


John Anthony Evans

image.on Events.StateDidSwitch, -> if image.states.current == "show" then print "do stuff"

(disclaimer that's from memory so it might not be 100% correct)

Will Clark

Works great. Thanks! Do you know if all the Events are documented somewhere?

Read the entire post on Facebook