<label class="toggle"> <input class="input" type="checkbox"> <span class="slider"></span> </label>
.toggle { position: relative; display: inline-block; width: 60px; height: 34px; } .toggle input { opacity: 0; width: 0; height: 0; transition: transform 0.2s ease-in-out;