
/* <input type="checkbox" id="switch" /><label for="switch">Toggle</label> */

input[type=checkbox]{
	height: 0;
	width: 0;
	visibility: hidden;
}

label.toggle {
	cursor: pointer;
	text-indent: -9999px;
	width: 4em;
	height: 2em;
	background: grey;
	display: block;
	border-radius: 2em;
	position: relative;
}

label.toggle:after {
	content: '';
	position: absolute;
	top: .1em;
	left: .1em;
	width: 1.8em;
	height: 1.8em;
	background: #fff;
	border-radius: 2em;
	transition: 0.1s; /* Animate toggle */
}

input:checked + label {
	background: #33ee66;
}

input:checked + label:after {
	left: calc(100% - .1em);
	transform: translateX(-100%);
}
/* Morph shape during toggle */
label:active:after {
	width: 3em;
}
