Created
October 12, 2014 14:01
-
-
Save nicebarbarian/a44c3c73af5ae6c89fdf to your computer and use it in GitHub Desktop.
framer.js: layer with click animation
This file contains hidden or 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
myLayer = new Layer | |
x: 0 | |
y: 100 | |
width: 50 | |
height: 50 | |
myLayer.on Events.Click, -> | |
myLayer.animate | |
properties: {x:200} | |
curve: "spring(400,10,0)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment