CSS3 Button 9

by 02:26 0 comments

<html>
<head>
<style>
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 0px 20px 0 #000 inset;
 border-radius:0 0 15px 15px;
 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: -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: -o-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;
 opacity: 0.8;
}

label {
 width: 90px;
 height: 30px;
 display: inline-block;
 margin-top: 100px;
 position: relative;
 border-radius: 14px;
 background: rgb(138,138,138);
 background: -webkit-linear-gradient(top,rgba(138,138,138,1) 0%, rgba(140,140,140,1) 14%,rgba(159,159,159,1) 72%,  rgba(164,164,164,1) 100%);
 background: -moz-linear-gradient(top,rgba(138,138,138,1) 0%, rgba(140,140,140,1) 14%,rgba(159,159,159,1) 72%, rgba(164,164,164,1) 100%);
 background: -ms-linear-gradient(top,rgba(138,138,138,1) 0%, rgba(140,140,140,1) 14%,rgba(159,159,159,1) 72%, rgba(164,164,164,1) 100%);
 background: -o-linear-gradient(top,rgba(138,138,138,1) 0%, rgba(140,140,140,1) 14%,rgba(159,159,159,1) 72%, rgba(164,164,164,1) 100%);
 box-shadow: inset 0 2px 5px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
 line-height: 30px;
 font-style: normal;
 color: #fff;
 text-shadow: 0 1px 1px rgba(0,0,0,0.1);
 font-weight: bold;
 -webkit-box-reflect: below 5px
  -webkit-gradient(linear, left top, left bottom,
  color-stop(0.5, transparent),
  to(rgba(255, 255, 255, 0.8)));
 -moz-transition: all 1s ease-in;
 -webkit-transition: all 1s ease-in;
 -o-transition: all 1s ease-in;
 transition: all 1s ease-in;
 cursor: pointer;
}

label.attention:hover {
}
label.attention:hover:before {
 content: ""; /* &#9762; */
 font-size: 22px
}
input[type=checkbox]:checked ~ label.attention:hover:before  {
}


label i {
 position: absolute;
 top: -4px;
 right:60px;
 width: 36px;
 height: 36px;
 display: block;
 border-radius: 36px;
 background: rgb(255,255,255);
 background: -webkit-linear-gradient(top, 
  rgba(255,255,255,1) 0%, 
  rgba(252,252,252,1) 11%, 
  rgba(228,228,228,1) 50%,
  rgba(221,221,221,1) 53%,
  rgba(205,205,205,1) 97%, 
  rgba(191,191,191,1) 100%);
 background: -moz-linear-gradient(top, 
  rgba(255,255,255,1) 0%, 
  rgba(252,252,252,1) 11%,
  rgba(228,228,228,1) 50%,
  rgba(221,221,221,1) 53%, 
  rgba(205,205,205,1) 97%, 
  rgba(191,191,191,1) 100%);
 background: -o-linear-gradient(top, 
  rgba(255,255,255,1) 0%,
  rgba(252,252,252,1) 11%,
  rgba(228,228,228,1) 50%, 
  rgba(221,221,221,1) 53%, 
  rgba(205,205,205,1) 97%,
  rgba(191,191,191,1) 100%);
 background: -ms-linear-gradient(top, 
  rgba(255,255,255,1) 0%, 
  rgba(252,252,252,1) 11%,
  rgba(228,228,228,1) 50%, 
  rgba(221,221,221,1) 53%, 
  rgba(205,205,205,1) 97%, 
  rgba(191,191,191,1) 100%);
 background: linear-gradient(top, 
  rgba(255,255,255,1) 0%,
  rgba(252,252,252,1) 11%,
  rgba(228,228,228,1) 50%,
  rgba(221,221,221,1) 53%, 
  rgba(205,205,205,1) 97%, 
  rgba(191,191,191,1) 100%);
 box-shadow: inset 0 -3px 3px 0 rgba(0, 0, 0, 0.1),
    inset 0 -1px 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 0 0 rgba(0, 0, 0, 0.2);
 -webkit-transition: all 200ms ease;
 -moz-transition: all 200ms ease;
 -o-transition: all 200ms ease;
 -ms-transition: all 200ms ease;
 transition: all 200ms ease;
}

label i:before {
 content: "";
 display: block;
 position: absolute;
 top: 50%;
 left: 50%;
 width: 18px;
 height: 18px;
 margin: -9px 0 0 -9px;
 border-radius: 18px;
 background: rgb(239,239,239);
 background: -webkit-linear-gradient(top, 
      rgba(239,239,239,1) 0%,
      rgba(225,225,225,1) 6%, 
      rgba(225,225,225,1) 24%,
      rgba(229,229,229,1) 94%,
      rgba(242,242,242,1) 100%);
 background: -moz-linear-gradient(top,
      rgba(239,239,239,1) 0%,
      rgba(225,225,225,1) 6%,
      rgba(225,225,225,1) 24%,
      rgba(229,229,229,1) 94%, 
      rgba(242,242,242,1) 100%);
 background: -o-linear-gradient(top,
      rgba(239,239,239,1) 0%,
      rgba(225,225,225,1) 6%,
      rgba(225,225,225,1) 24%,
      rgba(229,229,229,1) 94%,
      rgba(242,242,242,1) 100%);
 background: -ms-linear-gradient(top, 
      rgba(239,239,239,1) 0%,
      rgba(225,225,225,1) 6%, 
      rgba(225,225,225,1) 24%,
      rgba(229,229,229,1) 94%, 
      rgba(242,242,242,1) 100%);
 background: linear-gradient(top, 
      rgba(239,239,239,1) 0%,
      rgba(225,225,225,1) 6%,
      rgba(225,225,225,1) 24%,
      rgba(229,229,229,1) 94%,
      rgba(242,242,242,1) 100%);
 box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.1);
}
label:hover i {
 box-shadow: inset 0 -3px 3px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.4), 0 2px 0 0 rgba(0, 0, 0, 0.3);
}
label:active i:before {
 box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.3);
}

label:before {
 content: "off";
 margin-left: 30px;
 text-transform: uppercase;
 -webkit-transition: all 200ms ease;
 -moz-transition: all 200ms ease;
 -o-transition: all 200ms ease;
 -ms-transition: all 200ms ease;
 transition: all 200ms ease;
}

label:after {
 content: "dont't turn me";
 right: 85px;
 width: 150px;
 text-transform: uppercase;
 font-size: 10px;
 font-weight: bold;
 color: #999;
 text-shadow: 0 1px 1px rgba(255,255,255,0.5), 0 -1px 1px rgba(0,0,0,0.1);
 position: absolute;
 top: 0;
}

input[type=checkbox]:checked ~ label:before {
 content: "on";
 text-transform: uppercase;
 margin-right: 30px;
 margin-left: 0;
}

input[type=checkbox]:checked ~ label:after {
 content: "too bed";
 right: -130px;
}

input[type=checkbox]:checked ~ label{
 background: rgb(141,173,51);
 background: -webkit-radial-gradient(center, ellipse cover, rgba(141,173,51,1) 0%, rgba(146,178,55,1) 24%, rgba(157,187,64,1) 55%, rgba(166,194,78,1) 100%);
 background: -moz-radial-gradient(center, ellipse cover, rgba(141,173,51,1) 0%, rgba(146,178,55,1) 24%, rgba(157,187,64,1) 55%, rgba(166,194,78,1) 100%);
 background: -o-radial-gradient(center, ellipse cover, rgba(141,173,51,1) 0%, rgba(146,178,55,1) 24%, rgba(157,187,64,1) 55%, rgba(166,194,78,1) 100%);
 background: -ms-radial-gradient(center, ellipse cover, rgba(141,173,51,1) 0%, rgba(146,178,55,1) 24%, rgba(157,187,64,1) 55%, rgba(166,194,78,1) 100%);
 background: radial-gradient(center, ellipse cover, rgba(141,173,51,1) 0%, rgba(146,178,55,1) 24%, rgba(157,187,64,1) 55%, rgba(166,194,78,1) 100%);
}

input[type=checkbox]:checked ~ label i {
 right: -6px;
}

input {
 position: absolute;
 bottom: 5px;
 left: 50%;
 margin-left: 10px;
 opacity: 0;
  -webkit-transition: all 0.3s ease-out; 
     -moz-transition: all 0.3s ease-out; 
       -o-transition: all 0.3s ease-out; 
          transition: all 0.3s ease-out; 
} 

</style>

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

Shurvir Mori

Unknown

Web Designer

Responsive Web Designer.. Shurvir Mori - Name is Enough. You can search on Google

0 comments:

Post a Comment