Last active
August 29, 2015 14:26
-
-
Save eliranmal/a5e2cf3b89b5b1cfe6f3 to your computer and use it in GitHub Desktop.
switching kittens #6 - love thy kitten
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
/* switching kittens #6 - love thy kitten */ | |
input[type=checkbox] { | |
display: none; | |
} | |
input[type=checkbox] + label { | |
background-image: url('//placekitten.com/400/404'); | |
display: block; | |
width: 400px; | |
height: 400px; | |
} | |
input[type=checkbox]:checked + label { | |
background-image: url('//placekitten.com/410/400'); | |
} |
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 type="checkbox" id="my-checkbox" /> | |
<label for="my-checkbox"></label> |
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