What does this code do?
HTML:
<input id="trigger" class="toggle-checkbox" type="checkbox">
<label for="trigger">Hello!</label>
<div class="z"></div>
CSS:
.toggle-checkbox:checked ~ .z {
animation: spin 1s infinite;
}
Getting Braaains Should Be Fun
What does this code do?
HTML:
<input id="trigger" class="toggle-checkbox" type="checkbox">
<label for="trigger">Hello!</label>
<div class="z"></div>
CSS:
.toggle-checkbox:checked ~ .z {
animation: spin 1s infinite;
}