Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Last active March 20, 2021 13:27
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 unlocomqx/201e11170550c67a8233f427ed47c82d to your computer and use it in GitHub Desktop.
Save unlocomqx/201e11170550c67a8233f427ed47c82d to your computer and use it in GitHub Desktop.
.custom-checkbox input[type=checkbox]:checked+span i {
opacity: 1;
transition: opacity ease-in-out .2s;
}
.custom-checkbox input[type=checkbox]+span i {
opacity: 0;
pointer-events: none;
font-size: 15px;
position: absolute;
top: 4px;
left: 0px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment