Skip to content

Instantly share code, notes, and snippets.

@nvh
nvh / buttonToggle.coffee
Created July 18, 2016 07:35 — forked from joshuacrowley/buttonToggle.coffee
Simple toggle button setup for Framer.js
for button in sketch.headerBttn.children
button.states.add
off:
opacity: 0.5
on:
opacity: 1
button.onTap (event, layer) ->
others = _.without(sketch.headerBttn.children, layer)
for other in others
other.states.switch("off")