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="loader">
	<a href="#">Loading</a>
</div>

<div class="note">
  <p>a clone of the Instagram loading animation</p>
</div>

            
          
!
            
              body{
  background-color:#fbfbfb;
}

.loader {
  margin:100px auto;
    height: 120px;
    width: 120px;
    box-sizing: border-box;
    display: flex;
    position: relative;
    justify-content: center;
    perspective-origin: 60px 60px;
    transform-origin: 60px 60px;
    border: 0px solid rgb(0, 0, 0);
    flex: 0 0 auto;
    flex-flow: column nowrap;
  
    &:after,
    &:before {
        height: 120px;
        width: 120px;
        border-radius: 50%;
        border-style: solid;
        border-width: 2px;
        box-sizing: border-box;
        content: '';
        left: 0;
        position: absolute;
        top: 0;
    }
    &:after {
        -webkit-animation: rotate 2s infinite ease;
        animation: rotate 2s infinite ease;
        border-color: #3897f0 transparent transparent;
        -webkit-transform-origin: 50%;
        transform-origin: 50%;
    }
    &:before {
        border-color: #c7c7c7;
    }
    a {
        display: block;
        font-size: 14px;
        margin: -60px 0;
        padding: 60px 9px;
        position: relative;
        text-align: center;
        vertical-align: middle;
        z-index: 1;
        color: rgb(199, 199, 199);
        text-decoration: none;
        font: normal normal 600 normal 14px / 14px proxima-nova, "Helvetica Neue", Arial, Helvetica, sans-serif;
    }
}

@-webkit-keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

@keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}


.note{
  color: rgb(199, 199, 199);
  text-decoration: none;
  font: normal normal 600 normal 12px / 12px proxima-nova, "Helvetica Neue", Arial, Helvetica, sans-serif;
  text-align:center;
  width:100%;
}
            
          
!
999px
Loading ..................

Console