<div class="wrapper"> <input type="checkbox" name="checkbox" class="switch"> </div>
.switch { position: relative; width: 130px; height: 50px; margin: 0px; appearance: none; -webkit-appearance: none; background-color: rgb(4,52,73); background-size: cover; background-repeat: no-repeat; border-radius: 25px; transition: background-image .7s ease-in-out;