cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="container">

    <!-- OUTER SHADOW -->
    <div class="de">

        <!-- TEXT -->
        <div class="den">

            <!-- LINE -->
            <hr class="line">
            <hr class="line">
            <hr class="line">

            <!-- SWITCH -->
            <div class="switch" style="display:block">

                <!-- TEXT -->
                <label for="switch_0"><span>5&deg;</span></label>
                <label for="switch_1"><span>10&deg;</span></label>
                <label for="switch_2"><span>15&deg;</span></label>
                <label for="switch_3"><span>5&deg;</span></label>
                <label for="switch_4"><span>20&deg;</span></label>
                <label for="switch_5"><span>25&deg;</span></label>

                <!-- INPUT -->
                <input id="switch_off" name="switch" checked type="radio">
                <input id="switch_1" name="switch" type="radio">
                <input id="switch_2" name="switch" type="radio">
                <input id="switch_3" name="switch" type="radio">
                <input id="switch_4" name="switch" type="radio">
                <input id="switch_5" name="switch" type="radio">

                <!-- LIGHT -->
                <div class="light"></div>

                <!-- DOT -->
                <!--<div class="dot"><span></span></div>-->

                <!-- CENTER -->
                <div class="dene">
                    <div class="denem">
                        <div class="deneme">
                          <span>27<strong>&deg;</strong></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
            
          
!
            
              /* MASTER
--------------------------------------------- */
@import url(https://fonts.googleapis.com/css?family=Dosis:200,400,500,600);
html, body {
    height: 100%;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    color: #333;
    font-size: 13px;
    background: #f1f1f1;
}

/* SWITCH
--------------------------------------------- */

.container {
    width: 230px;
    width: 230px;
    margin: 40px auto 0;
}

.container .origin {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 111;
    width: 2px;
    height: 2px;
    margin: -1px 0 0 -1px;
    background-color: #f50;
}

.de {
    -webkit-user-select: none;
    position: relative;
    width: 215px;
    height: 215px;
    border-radius: 100%;
    box-shadow: 0 0 25px rgba(0, 0, 0, .1);
    background-color: transparent;
}

.de .den, .de .dene, .de .denem, .de .deneme, .de .light, .de .dot {
    position: absolute;
    left: 50%;
    top: 50%;
}

.den {
    position: relative;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border-radius: 100%;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, .5), 0 2px 20px rgba(255, 255, 255, 1);

}

.den {
  background: #df3341;
  background: -moz-linear-gradient(left, #df3341 0%, #d4f355 50%, #61c0ec 100%);
  background: -webkit-gradient(linear, left top, right top, color-stop(0%,#df3341), color-stop(50%,#d4f355), color-stop(100%,#61c0ec));
  background: -webkit-linear-gradient(left, #df3341 0%,#d4f355 50%,#61c0ec 100%);
  background: -o-linear-gradient(left, #df3341 0%,#d4f355 50%,#61c0ec 100%); 
  background: -ms-linear-gradient(left, #df3341 0%,#d4f355 50%,#61c0ec 100%);
  background: linear-gradient(to right, #df3341 0%,#d4f355 50%,#61c0ec 100%);
  position:relative;
}



.dene {
    z-index: 4;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border-radius: 100%;
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, .4), 0 3px 13px rgba(0, 0, 0, .85);

    background: #f2f6f5;
    background: -moz-linear-gradient(top, #f2f6f5 0%, #cbd5d6 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f2f6f5), color-stop(100%, #cbd5d6));
    background: -webkit-linear-gradient(top, #f2f6f5 0%, #cbd5d6 100%);
    background: -o-linear-gradient(top, #f2f6f5 0%, #cbd5d6 100%);
}

.denem {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 100%;

    background: #cbd5d6;
    background: -moz-linear-gradient(top, #cbd5d6 0%, #f2f6f5 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #cbd5d6), color-stop(100%, #f2f6f5));
    background: -webkit-linear-gradient(top, #cbd5d6 0%, #f2f6f5 100%);
    background: -o-linear-gradient(top, #cbd5d6 0%, #f2f6f5 100%);
}

.deneme {
    width: 100px;
    height: 100px;
 
    margin: -50px 0 0 -50px;
    border-radius: 100%;
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, .6), 0 8px 20px rgba(0, 0, 0, .9);

    background: #eef7f6;
    background: -moz-linear-gradient(top, #eef7f6 0%, #8d989a 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #eef7f6), color-stop(100%, #8d989a));
    background: -webkit-radial-gradient(top, #eef7f6 0%, #8d989a 100%);
    background: -o-linear-gradient(top, #eef7f6 0%, #8d989a 100%);
}
.deneme span {
    color: white;
  text-shadow: 1px 1px 1px #666;
  font-family: 'Dosis';
  font-size: 62px;
  font-weight: normal;
  display: inline-block;
  margin-left: 15px;
  margin-top: 10px;

}
.deneme span strong {
  font-size: 40px;
  font-weight: 200;
  display:block;
  float:right;
  margin-top: 7px;
  margin-left: 3px;
}
.den .switch {
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.den .switch label {
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 70px;
    margin-top: -35px;
    -moz-transform-origin: 0% 50%;
    -webkit-transform-origin: 0% 50%;
    -o-transform-origin: 0% 50%;
}

.den .switch label:after {
    content: "";
    position: absolute;
    top: 6px;
    left: 1px;
    width: 100%;
    height: 30px;
    -moz-transform: rotate(-30deg);
    -webkit-transform: rotate(-30deg);
    -o-transform: rotate(-30deg);
}

.den .switch label:before {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 1px;
    width: 100%;
    height: 30px;
    -moz-transform: rotate(30deg);
    -webkit-transform: rotate(30deg);
    -o-transform: rotate(30deg);
}

.den .switch label span {
    z-index: 2;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    font-weight: bold;
    font-size: 15px;
    line-height: 70px;
    text-align: center;
    color: #fff;
    /*text-shadow: 0 1px 0 #e1e1e1;*/
}

.den .switch label:nth-child(1) {
    -moz-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
}

.den .switch label:nth-child(1) span {
    right: 2px;
    font-size: 13px;
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
}

.den .switch label:nth-child(2) {
    -moz-transform: rotate(-30deg);
    -webkit-transform: rotate(-30deg);
    -o-transform: rotate(-30deg);
}

.den .switch label:nth-child(2) span {
    -moz-transform: rotate(30deg);
    -webkit-transform: rotate(30deg);
    -o-transform: rotate(30deg);
}

.den .switch label:nth-child(3) {
    -moz-transform: rotate(30deg);
    -webkit-transform: rotate(30deg);
    -o-transform: rotate(30deg);
}

.den .switch label:nth-child(3) span {
    -moz-transform: rotate(-30deg);
    -webkit-transform: rotate(-30deg);
    -o-transform: rotate(-30deg);
}

.den .switch label:nth-child(4) {
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
}

.den .switch label:nth-child(4) span {
    -moz-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
}

.den .switch label:nth-child(5) {
    -moz-transform: rotate(150deg);
    -webkit-transform: rotate(150deg);
    -o-transform: rotate(150deg);
}

.den .switch label:nth-child(5) span {
    -moz-transform: rotate(-150deg);
    -webkit-transform: rotate(-150deg);
    -o-transform: rotate(-150deg);
}

.den .switch label:nth-child(6) {
    -moz-transform: rotate(210deg);
    -webkit-transform: rotate(210deg);
    -o-transform: rotate(210deg);
}

.den .switch label:nth-child(6) span {
    -moz-transform: rotate(-210deg);
    -webkit-transform: rotate(-210deg);
    -o-transform: rotate(-210deg);
}

.den .switch input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

/* SWITCH LIGHT */

.den .light {
    z-index: 1;
    width: 50%;
    height: 100px;
    margin-top: -50px;
    -moz-transform-origin: 0% 50%;
    -webkit-transform-origin: 0% 50%;
    -o-transform-origin: 0% 50%;
    -moz-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
}
.den .light:after {
  content: '';
  position: absolute;
  top: 36px;
  left: 55px;
  width: 0;
  height: 0;
  border-left: 40px solid rgba(0, 0, 0, .3);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
 
}


/* SWITCH LIGHT POSITION */

.den #switch_off:checked ~ .light {
    -moz-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
}

.den #switch_1:checked ~ .light {
    -moz-transform: rotate(-30deg);
    -webkit-transform: rotate(-30deg);
    -o-transform: rotate(-30deg);
}

.den #switch_2:checked ~ .light {
    -moz-transform: rotate(30deg);
    -webkit-transform: rotate(30deg);
    -o-transform: rotate(30deg);
}

.den #switch_3:checked ~ .light {
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
}

.den #switch_4:checked ~ .light {
    -moz-transform: rotate(150deg);
    -webkit-transform: rotate(150deg);
    -o-transform: rotate(150deg);
}

.den #switch_5:checked ~ .light {
    -moz-transform: rotate(210deg);
    -webkit-transform: rotate(210deg);
    -o-transform: rotate(210deg);
}

/* SWITCH LIGHT */

.den .dot {
    z-index: 6;
    width: 50%;
    height: 12px;
    margin-top: -6px;
    -moz-transform-origin: 0% 50%;
    -webkit-transform-origin: 0% 50%;
    -o-transform-origin: 0% 50%;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
}

.den .dot span {
    position: absolute;
    top: 0;
    left: 30px;
    width: 12px;
    height: 12px;
    border-radius: 100%;
    background: #dae2e4;
    background: -moz-linear-gradient(top, #dae2e4 0%, #ecf5f4 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dae2e4), color-stop(100%, #ecf5f4));
    background: -webkit-linear-gradient(top, #dae2e4 0%, #ecf5f4 100%);
    background: -o-linear-gradient(top, #dae2e4 0%, #ecf5f4 100%);
}

/* SWITCH LIGHT POSITION */

.den #switch_off:checked ~ .dot {
    -moz-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
}

.den #switch_off:checked ~ .dot span {
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
}

.den #switch_1:checked ~ .dot {
    -moz-transform: rotate(-30deg);
    -webkit-transform: rotate(-30deg);
    -o-transform: rotate(-30deg);
}

.den #switch_1:checked ~ .dot span {
    opacity: .9;
    -moz-transform: rotate(30deg);
    -webkit-transform: rotate(30deg);
    -o-transform: rotate(30deg);
}

.den #switch_2:checked ~ .dot {
    -moz-transform: rotate(30deg);
    -webkit-transform: rotate(30deg);
    -o-transform: rotate(30deg);
}

.den #switch_2:checked ~ .dot span {
    opacity: .5;
    -moz-transform: rotate(-30deg);
    -webkit-transform: rotate(-30deg);
    -o-transform: rotate(-30deg);
}

.den #switch_3:checked ~ .dot {
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
}

.den #switch_3:checked ~ .dot span {
    opacity: .4;
    -moz-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
}

.den #switch_4:checked ~ .dot {
    -moz-transform: rotate(150deg);
    -webkit-transform: rotate(150deg);
    -o-transform: rotate(150deg);
}

.den #switch_4:checked ~ .dot span {
    opacity: .5;
    -moz-transform: rotate(-150deg);
    -webkit-transform: rotate(-150deg);
    -o-transform: rotate(-150deg);
}

.den #switch_5:checked ~ .dot {
    -moz-transform: rotate(210deg);
    -webkit-transform: rotate(210deg);
    -o-transform: rotate(210deg);
}

.den #switch_5:checked ~ .dot span {
    opacity: .9;
    -moz-transform: rotate(-210deg);
    -webkit-transform: rotate(-210deg);
    -o-transform: rotate(-210deg);
}

/* LINE */

.den hr.line {
    z-index: 1;
    position: absolute;
    top: 50%;
    width: 100%;
    height: 0;
    margin-top: -1px;
  border: 0;  
  border-bottom: 1px solid #fff;
}

.den hr.line:nth-child(1) {
    -moz-transform: rotate(-60deg);
    -webkit-transform: rotate(-60deg);
    -o-transform: rotate(-60deg);
}

.den hr.line:nth-child(2) {
    -moz-transform: rotate(60deg);
    -webkit-transform: rotate(60deg);
    -o-transform: rotate(60deg);
}
            
          
!
999px
Loading ..................

Console