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.

            
              <link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">

<div class="holder">
  <div class="mirror-preloader">
    <div class="rotate">
      <div class="base">
        <div class="half-circle half-circle-1"></div>
        <div class="half-circle half-circle-2"></div>
        <div class="mirror-line left-line"></div>
        <div class="mirror-line right-line"></div>
        <div class="mirror-line standing-line"></div>
        <div class="mirror-line bottom-line"></div>
      </div>
      <div class="mirror">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
      </div>
    </div>
    <div class="text">Mirror, mirror on the wall?<br/>Are you going to load them all?</div>
  </div>
</div>
            
          
!
            
              $borderSize: 10px;
$borderColor: #333;
$count: 5;
$preloaderSize: 300px;
$rotate: 5;
$colors: (
  1: #44B3C2,
  2: #F1A94E,
  3: #E45641,
  4: #5D4C46,
  5: #7B8D8E
);

.holder {
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  width: 100%;
  height: 100%;
  background-color: #EBE5DF;
}

.mirror-preloader {
  color: $borderColor;
  font-family: Raleway, sans-serif;
  position: absolute;
  left: 50%;
  top: 45%;
  width: $preloaderSize;
  height: $preloaderSize;
  transform: translateX(-50%) translateY(-50%);
  perspective: 300px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.mirror-preloader .rotate {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  transform-origin: 100% 50%;
  transform: skew((0 - $rotate) + deg) rotateY(($rotate * 2) + deg) rotateX(0deg);
}

.mirror-preloader .base {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.mirror-preloader .half-circle {
  position: absolute;
  border-bottom-left-radius: 100%;
  width: 42%;
  height: 40%;
  border: $borderSize solid $borderColor;
  border-top: 0px;
  border-right: 0px;
  left: 5%;
  top: 30%;
}
.mirror-preloader .half-circle-2 {
  left: 50%;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 100%;
  border-left: 0px;
  border-right: $borderSize solid $borderColor;
}
.mirror-preloader .mirror-line {
  position: absolute;
  left: 5.5%;
  border: none;
  border-top: $borderSize solid $borderColor;
  width: 15%;
  top: 30%;
}
.mirror-preloader .right-line {
  left: 79.5%;
}
.mirror-preloader .standing-line {
  left: 50%;
  width: 0px;
  height: 20%;
  border-top: 0px;
  border-left: $borderSize solid $borderColor;
  top: 70%;
}
.mirror-preloader .bottom-line {
  width: 30%;
  top: 90%;
  left: 37.5%;
}

.mirror-preloader .mirror {
  border-radius: 50%;
  width: 60%;
  height: 60%;
  background-color: #fff;
  position: absolute;
  top: 5px;
  left: 20%;
  animation: mirror-rotate 2s infinite linear;
  box-sizing: border-box;
  border: $borderSize solid $borderColor;
}

@keyframes mirror-rotate {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(360deg);
  }
}

.mirror-preloader .mirror div {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  animation-duration: 2.5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  border-radius: 50%;
}

$circleWidth: 0;
$time: 0;
$time2: 100;
@for $i from 1 through $count {
  .mirror-preloader .mirror div:nth-child(#{$i}) {
    background-color: map-get($colors, $i);
    animation-name: mirrorPreloader + $i;
    z-index: $count - $i;
  }
   
  $circleWidth: $circleWidth + 20;
  $time: $time + 10;
  $time2: $time2 - 10;
  @keyframes mirrorPreloader#{$i} {
    0% {
      width: 0px;
      height: 0px;
    }
    #{$time}% {
      width: percentage($circleWidth / 100);
      height: percentage($circleWidth / 100);
    }
    #{$time2 + 1}% {
      width: percentage($circleWidth / 100);
      height: percentage($circleWidth / 100);
    }
    100% {
      width: 0px;
      height: 0px;
    }
  }
}

.mirror-preloader .text {
  position: absolute;
  text-align: center;
  width: 100%;
  top: 110%;
}
            
          
!
999px
Loading ..................

Console