Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
Niels van Hoorn
nvh
Utrecht
https://nvh.github.com
View GitHub Profile
Sort:
Recently created
Sort options
Recently created
Least recently created
Recently updated
Least recently updated
All gists
10
Forked
1
Starred
2
Sort:
Recently created
Sort options
Recently created
Least recently created
Recently updated
Least recently updated
1 file
1 fork
0 comments
0 stars
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
"
)
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.