Skip to content

Instantly share code, notes, and snippets.

@eliranmal
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliranmal/922d3fef2d318ebbfb64 to your computer and use it in GitHub Desktop.
Save eliranmal/922d3fef2d318ebbfb64 to your computer and use it in GitHub Desktop.
switching kittens #5 - be aggressive, b-e aggressive
/* switching kittens #5 - be aggressive, b-e aggressive */
input[type=checkbox] {
appearance: none;
}
input[type=checkbox] + label {
background-image: url('//placekitten.com/407/407');
display: block;
width: 400px;
height: 400px;
}
input[type=checkbox]:checked + label {
background-image: url('//placekitten.com/409/400');
}
<input type="checkbox" id="my-checkbox" />
<label for="my-checkbox"></label>
// alert('Hello world!');
{"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