Last active
January 9, 2018 23:11
-
-
Save edkf/99c87b16bb6260b7cbab7deb2833fd7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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