Skip to content

Instantly share code, notes, and snippets.

@nicebarbarian
Created October 12, 2014 14:01
Show Gist options
  • Save nicebarbarian/a44c3c73af5ae6c89fdf to your computer and use it in GitHub Desktop.
Save nicebarbarian/a44c3c73af5ae6c89fdf to your computer and use it in GitHub Desktop.
framer.js: layer with click animation
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