Last active
May 12, 2017 16:48
-
-
Save joshuacrowley/1771eeed99e2040c189f07d84e081af5 to your computer and use it in GitHub Desktop.
Revisions
-
joshuacrowley revised this gist
Jul 18, 2016 . 1 changed file with 10 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,16 @@ toggleBatch = (arrayOfLayers) -> for button in arrayOfLayers button.states.add off: opacity: 0.30 index : 19 on: opacity: 1 index : 20 button.states.switchInstant("off") button.onTap (event, layer) -> others = _.without(arrayOfLayers, layer) for other in others other.states.switch("off") layer.states.switch("on") arrayOfLayers[0].states.switch("on") -
joshuacrowley revised this gist
Jul 18, 2016 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,11 @@ 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") button.states.switch("on") -
joshuacrowley created this gist
Jul 16, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ for button in sketch.headerBttn.children do (button) -> button.states.add off: opacity: 0.5 on: opacity: 1 button.onTap -> others = _.without(sketch.headerBttn.children, button) for other in others other.states.switch("off") button.states.switch("on")