Skip to content

Instantly share code, notes, and snippets.

@nvh
nvh / buttonToggle.coffee
Created Jul 18, 2016 — forked from joshuacrowley/buttonToggle.coffee
Simple toggle button setup for Framer.js
View buttonToggle.coffee
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")