Skip to content

Instantly share code, notes, and snippets.

@edkf
Last active January 9, 2018 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edkf/99c87b16bb6260b7cbab7deb2833fd7c to your computer and use it in GitHub Desktop.
Save edkf/99c87b16bb6260b7cbab7deb2833fd7c to your computer and use it in GitHub Desktop.
goToModal = (nav, layerA, layerB, overlay) ->
transition =
# states of the current layer
layerA:
show:
x: 0
opacity: 1
hide:
x: 0
opacity: 1
# states of layer that the next layer
layerB:
show:
x: 0
opacity: 1
hide:
x: 0
opacity: 0
# Event that makes the flow transition start
coinRow.onTap ->
flow.transition(modal, goToModal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment