Skip to content

Instantly share code, notes, and snippets.

@boblemarin
Created December 10, 2012 08:37
Show Gist options
  • Save boblemarin/4249358 to your computer and use it in GitHub Desktop.
Save boblemarin/4249358 to your computer and use it in GitHub Desktop.
La technique de la checkbox
/*
* La technique de la checkbox
**/
input[type="checkbox"] {
display: none;
}
.truc1label {
display: block;
background: #474;
width: 100px;
color: white;
-webkit-transition: all .5s ease-out;
padding: 2em;
}
#truc1:checked + .truc1label {
width: 200px;
background: #8F8;
}
<input type="checkbox" id="truc1">
<label for="truc1" class="truc1label">label</label>
// alert('Hello world!');
{"view":"split","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