<label aria-checked="false" role="switch" class="switch"> <input type="checkbox" /> <span class="slider"> <span class="slider-inner"></span> </span> </label>
.switch { display: inline-block; width: 6em; height: 3em; position: relative; font-size: 18px; user-select: none; margin: 20px; } .switch input { opacity: 0;