Created
February 6, 2015 21:17
-
-
Save mhkt/3c41c4f65c08c2abad8e to your computer and use it in GitHub Desktop.
Return zoom animation in Framer photo thingy
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
zoomInAnimationFunc = (layerName) -> | |
zoomIn = new Animation | |
layer: layerName | |
properties: | |
x: 0 | |
y: 325 | |
height: 640 | |
width: Screen.width | |
time: 0.2 | |
curve: "spring(300,23,0)" | |
zoomIn.start() | |
return zoomIn | |
pic1.on Events.Click, -> | |
banimation = zoomInAnimationFunc(this) | |
this.on Events.Click, -> | |
banimation.start() | |
backBtn.on Events.Click, -> | |
banimation.reverse().start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment