Skip to content

Instantly share code, notes, and snippets.

@mrrocks
Created February 22, 2015 17:25
Show Gist options
  • Save mrrocks/a57938bd4a23b496e713 to your computer and use it in GitHub Desktop.
Save mrrocks/a57938bd4a23b496e713 to your computer and use it in GitHub Desktop.
Cycle through functions in FramerJS
one = -> print 1
two = -> print 2
toggler = Utils.cycle(one, two)
layer.on Events.Click, -> do toggler()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment