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

What is Framer? Join the Community
Return to index
Carl Cooper
Posted May 24 - Read on Facebook

When looking at some code, I see that instead of calling animationObject.on Events.AnimationEnd, -> or animationObject.on Events.AnimationStart, -> I can just say animationObject.on "end", -> or animationObject.on "start", -> . Are there any other shortcuts?

1 Comments

Benjamin Den Boer

Hey Carl Cooper - all events in Framer have a matching string alias. For example:

Events.TouchStart = "touchstart"
Events.TouchEnd = "touchend"
Events.TouchMove = "touchmove"
Events.Move = "move"
Events.DragStart = "dragstart"
Events.DragEnd = "dragend"

...and so on. :-)

Read the entire post on Facebook