Created
August 5, 2015 15:24
-
-
Save eliranmal/906c456aa56d17178ea4 to your computer and use it in GitHub Desktop.
pure css toggle
This file contains 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 characters
/* | |
pure css toggle | |
*/ | |
input[type="checkbox"] { | |
content: url('http://placekitten.com/200/210'); | |
display: block; | |
width: 200px; | |
height: 200px; | |
} | |
input[type="checkbox"]:checked { | |
content: url('http://placekitten.com/210/220'); | |
} | |
/* | |
.native-hidden { | |
appearance: none; | |
} | |
*/ |
This file contains 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 characters
<input class="native-hidden" type="checkbox" /> |
This file contains 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 characters
// alert('Hello world!'); |
This file contains 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 characters
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment