cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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="spinner-master">
  <input type="checkbox" id="spinner-form" />
  <label for="spinner-form" class="spinner-spin">
    <div class="spinner diagonal part-1"></div>
    <div class="spinner horizontal"></div>
    <div class="spinner diagonal part-2"></div>
  </label>
</div>
<div class="spinner-master2">
  <input type="checkbox" id="spinner-form2" />
  <label for="spinner-form2" class="spinner-spin2">
    <div class="spinner2 diagonal part-1"></div>
    <div class="spinner2 horizontal"></div>
    <div class="spinner2 diagonal part-2"></div>
  </label>
</div>
<div class="spinner-master3">
  <input type="checkbox" id="spinner-form3" />
  <label for="spinner-form3" class="spinner-spin3">
    <div class="spinner3 diagonal part-1"></div>
    <div class="spinner3 horizontal"></div>
    <div class="spinner3 diagonal part-2"></div>
  </label>
</div>
<div class="spinner-master4">
  <input type="checkbox" id="spinner-form4" />
  <label for="spinner-form4" class="spinner-spin4">
    <div class="spinner4 diagonal part-1"></div>
    <div class="spinner4 horizontal"></div>
    <div class="spinner4 diagonal part-2"></div>
  </label>
</div>
            
          
!
            
              body{
    background: #ADDCC8;
}
.spinner-master * {
    transition: all 0.3s;
    box-sizing: border-box;
}
.spinner-master {
    position: relative;
    margin: 50px auto;
    height: 50px;
    width: 50px;
}
.spinner-master input[type=checkbox] {
    display: none;
}
.spinner-master label {
    cursor: pointer;
    position: absolute;
    z-index: 99;
    height: 100%;
    width: 100%;
    top: 10px;
    left: 0;
}
.spinner-master .spinner {
    position: absolute;
    height: 5px;
    width: 100%;
    background-color: #FFF;
   box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); 
}
.spinner-master .diagonal.part-1 {
    position: relative;
    float: left;
}
.spinner-master .horizontal {
    position: relative;
    float: left;
    margin-top: 6px;
}
.spinner-master .diagonal.part-2 {
    position: relative;
    float: left;
    margin-top: 6px;
}
.spinner-master input[type=checkbox]:checked ~ .spinner-spin > .horizontal {
    opacity: 0;
}
.spinner-master input[type=checkbox]:checked ~ .spinner-spin > .diagonal.part-1 {
    transform: rotate(405deg);
}
.spinner-master input[type=checkbox]:checked ~ .spinner-spin > .diagonal.part-2 {
    transform: rotate(-405deg);
    margin-top: -16px;
}
/*SECOND VERSION*/

.spinner-master2 * {
    transition: all 0.3s;
    box-sizing: border-box;
}
.spinner-master2 {
    position: relative;
    margin: 50px auto;
    height: 50px;
    width: 50px;
}
.spinner-master2 input[type=checkbox] {
    display: none;
}
.spinner-master2 label {
    cursor: pointer;
    position: absolute;
    z-index: 99;
    height: 100%;
    width: 100%;
    top: 10px;
    left: 0;
}
.spinner-master2 .spinner2 {
    position: absolute;
    height: 5px;
    width: 100%;
   background-color: #eee;
   box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}
.spinner-master2 .diagonal.part-1 {
    position: relative;
    float: left;
}
.spinner-master2 .horizontal {
    position: relative;
    float: left;
    margin-top: 7px;
}
.spinner-master2 .diagonal.part-2 {
    position: relative;
    float: left;
    margin-top: 6px;
}
.spinner-master2 input[type=checkbox]:checked ~ .spinner-spin2 > .horizontal {
    opacity: 0;
}
.spinner-master2 input[type=checkbox]:checked ~ .spinner-spin2 > .diagonal.part-1 {
    transform: rotate(135deg);
    margin-top: 10px;
}
.spinner-master2 input[type=checkbox]:checked ~ .spinner-spin2 > .diagonal.part-2 {
    transform: rotate(-135deg);
    margin-top: -16px;
}
/*THIRD VERSION*/

.spinner-master3 * {
    transition: all 0.3s;
    box-sizing: border-box;
}
.spinner-master3 {
    position: relative;
    margin: 50px auto;
    height: 50px;
    width: 50px;
}
.spinner-master3 input[type=checkbox] {
    display: none;
}
.spinner-master3 label {
    cursor: pointer;
    position: absolute;
    z-index: 99;
    height: 100%;
    width: 100%;
    top: 10px;
    left: 0;
}
.spinner-master3 .spinner3 {
    position: absolute;
    height: 5px;
    width: 100%;
    background-color: #777;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}
.spinner-master3 .diagonal.part-1 {
    position: relative;
    float: left;
}
.spinner-master3 .horizontal {
    position: relative;
    float: left;
    margin-top: 6px;
}
.spinner-master3 .diagonal.part-2 {
    position: relative;
    float: left;
    margin-top: 6px;
}
.spinner-master3 input[type=checkbox]:checked ~ .spinner-spin3 > .horizontal {
    transform: scale(2, 1);
    opacity: 0;
}
.spinner-master3 input[type=checkbox]:checked ~ .spinner-spin3 > .diagonal.part-1 {
    transform: rotate(-135deg);
    margin-top: 10px;
}
.spinner-master3 input[type=checkbox]:checked ~ .spinner-spin3 > .diagonal.part-2 {
    transform: rotate(135deg);
    margin-top: -16px;
}
/*FORTH VERSION*/

.spinner-master4 * {
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    box-sizing: border-box;
}
.spinner-master4 {
    position: relative;
    margin: 50px auto;
    height: 50px;
    width: 50px;
}
.spinner-master4 input[type=checkbox] {
    display: none;
}
.spinner-master4 label {
    cursor: pointer;
    position: absolute;
    z-index: 99;
    height: 100%;
    width: 100%;
    top: 10px;
    left: 0;
}
.spinner-master4 .spinner4 {
    position: absolute;
    height: 5px;
    width: 100%;
    background-color: #333;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}
.spinner-master4 .diagonal.part-1 {
    position: relative;
    float: left;
}
.spinner-master4 .horizontal {
    position: relative;
    float: left;
    margin-top: 6px;
}
.spinner-master4 .diagonal.part-2 {
    position: relative;
    float: left;
    margin-top: 6px;
}
.spinner-master4 input[type=checkbox]:checked ~ .spinner-spin4 > .horizontal {
    transform: translate(-100px, 0px);
    opacity: 0;
}
.spinner-master4 input[type=checkbox]:checked ~ .spinner-spin4 > .diagonal.part-1 {
    transform: rotate(-135deg);
    margin-top: 10px;
}
.spinner-master4 input[type=checkbox]:checked ~ .spinner-spin4 > .diagonal.part-2 {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    margin-top: -16px;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console