CSS3 Switch

by shatul patil

HTML

<div class="rss">
  
  <input type="checkbox" id="buttonThree" />
  <label for="buttonThree"> <!-- class="attention" -->
    <i></i>
  </label>
  
</div><!-- /rss -->

CSS

*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Styles */
body {
	background-color: #ddd;
	font-family: Helvetica,Helvetica Neue,Arial;
	color: #757575;
	font-size: 14px;
	line-height: 1;
}
.clear {
	clear: both;
}
.rss {
	width: 400px;
	height: 300px;
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -150px 0 0 -200px;
	background: #d4d5d6;
	background: -webkit-linear-gradient(top, #d4d5d6 0%, #d2d3d4 22%, #c8c9ca 68%, #c8c9ca 100%);
	background: -moz-linear-gradient(top, #d4d5d6 0%, #d2d3d4 22%, #c8c9ca 68%, #c8c9ca 100%);
	background: -o-linear-gradient(top, #d4d5d6 0%, #d2d3d4 22%, #c8c9ca 68%, #c8c9ca 100%);
	background: -ms-linear-gradient(top, #d4d5d6 0%, #d2d3d4 22%, #c8c9ca 68%, #c8c9ca 100%);
	background: linear-gradient(top, #d4d5d6 0%, #d2d3d4 22%, #c8c9ca 68%, #c8c9ca 100%);
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.5);
	text-align: center;
	overflow: hidden;
}

.rss:before {
	content: "";
	background: -webkit-radial-gradient(center, ellipse cover, rgba(254,254,254,1) 0%, rgba(254,254,254,0) 50%, rgba(254,254,254,0) 100%);
	background: -moz-radial-gradient(center, ellipse cover, rgba(254,254,254,1) 0%, rgba(254,254,254,0) 50%, rgba(254,254,254,0) 100%);
	background: -o-radial-gradient(center, ellipse cover, rgba(254,254,254,1) 0%, rgba(254,254,254,0) 50%, rgba(254,254,254,0) 100%);
	background: -ms-radial-gradient(center, ellipse cover, rgba(254,254,254,1) 0%, rgba(254,254,254,0) 50%, rgba(254,254,254,0) 100%);
	background: radial-gradient(center, ellipse cover, rgba(254,254,254,1) 0%, rgba(254,254,254,0) 50%, rgba(254,254,254,0) 100%);
	width: 600px;
	height: 600px;
	display: block;
	position: absolute;
	top: -300px;
	left: 50%;
	margin-left: -300px;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
	filter: alpha(opacity=70);
	opacity: 0.8;
}

label {
	width: 90px;
	height: 30px;
	display:...