Skip to content

Instantly share code, notes, and snippets.

@andrewliebchen
Created September 4, 2017 23:57
Show Gist options
  • Save andrewliebchen/00df01eee1eabe6e0e67496722d78d8a to your computer and use it in GitHub Desktop.
Save andrewliebchen/00df01eee1eabe6e0e67496722d78d8a to your computer and use it in GitHub Desktop.
Framer EventEmitter
EE = new Framer.EventEmitter
box = new Layer
x: Align.center
y: Align.center
backgroundColor: 'blue'
EE.on box, (update) ->
box.props = update
box.onClick ->
EE.emit box, backgroundColor: 'red'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment