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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              .intro
  %h1 DEUS EX STYLE LOADER
  %h2 Pure css loader based on the game Deus ex human revolution
.loader
  .loader_outer
    .loader_outer__circle
      .circle
      .line
      .circle_two
      .line_two
  .loader_inner
    .loader_inner__center
      .inner
        -(1..180).each do
          .part
            .part_inner
        -(1..90).each do
          .partSmall
            .partSmall_inner
      .outer
        -(1..150).each do
          .outer_part
            .outer_part__inner
        -(1..130).each do
          .outer_partSmall
            .outer_partSmall__inner
  .loader_ring
  .loader_inner__text
    %p <span>This text does'nt really say</span> anything important.<br/><br/><span>It's just to give the impression</span> that some kind of data is being generated from the loader.<br/><br/>Baloney really...
  .loader_inner__data
    %p 这意味着绝对没有,但是很酷期待。佳发蛋糕,我喜欢佳发蛋糕和咖啡
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Play:400,700);

body{
  background:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/217233/back.png');
  background-size:cover;
  background-repeat:no-repeat;
  height:100vh;
  overflow:hidden;
  margin:0;
  padding:0;
  h1{
    color: white;
    text-align: center;
    text-transform: uppercase;
    margin: 30px 0px 8px 0px;
    font-family: 'Play', sans-serif;
    font-weight: 700;
    font-size: 34px;

  }
  h2{
    color:white;
    font-weight:normal;
    font-size:18px;
    text-transform:uppercase;
    text-align:center;
    margin:0;font-family: 'Play', sans-serif;
  }
  //background-position:center center;
}
.loader{
  position:absolute;
  left:0;
  right:0;
  top:0;
  &_outer{
    &__circle{
      -webkit-animation:rotateCircle 3s infinite;
      -moz-animation:rotateCircle 3s infinite;
      -o-animation:rotateCircle 3s infinite;
      -ms-animation:rotateCircle 3s infinite;
      position: absolute;
      transform-origin: 92px 13px;
      left: -92px;
      top: -13px;
      .circle{
        width: 20px;
        height: 20px;
        background: transparent;
        position: absolute;
        border-radius: 100%;
        border: 2px solid rgba(189, 151, 41, 0.37);
      }
      .circle_two{
        width: 20px;
        height: 20px;
        right: -184px;
        background: transparent;
        position: absolute;
        border-radius: 100%;
        border: 2px solid rgba(189, 151, 41, 0.37);
      }
      .line{
        width: 12px;
        left: -18px;
        height: 2px;
        top: 10px;
        position: absolute;
        background: rgba(189, 151, 41, 0.37);
      }
      .line_two{
        width: 12px;
        left: 192px;
        height: 2px;
        top: 10px;
        position: absolute;
        background: rgba(189, 151, 41, 0.37);
      }
    }
  }
  &_inner{

    &__text{
      position:absolute;left: -80px;
      top: -70px;
      width:100px;
      height:100px;
      overflow:hidden;
      p{
        position: absolute;
        top: -20px;
        -webkit-animation:textLeft 2s infinite;
        -moz-animation:textLeft 2s infinite;
        -o-animation:textLeft 2s infinite;
        -ms-animation:textLeft 2s infinite;
      }
    }
    &__data{
      position:absolute;left: -80px;
      top: 70px;
      left:-25px;
      width:100px;
      height:100px;
      overflow:hidden;
      p{
        position: absolute;
        top: -20px;
        -webkit-animation:textBottom 2s infinite;
         -moz-animation:textBottom 2s infinite;
         -o-animation:textBottom 2s infinite;
         -ms-animation:textBottom 2s infinite;
      }
    }
  }

  p{
    color:#EFC02B;
    font-size:4px;
    width:50px;
    span{
      background-color:#EFC02B;
    }
  }
  bottom:0;
  margin:auto;
  width:0;
  height:0;
  .inner{
    position: absolute;
    top: -50px;
    -webkit-animation:rotateInner 3s infinite;
    -o-animation:rotateInner 3s infinite;
    -ms-animation:rotateInner 3s infinite;
    -moz-animation:rotateInner 3s infinite;
    transform-origin: 0px 50px;
  }
  .part,.partSmall{
    height:100px;
    transform-origin:0px;
    position:absolute;
    &_inner{
      width:2px;
      height:12px;
      background:rgba(189, 151, 41, 0.37);
    }
  }
  @for $i from 0 through 270{
    .part:nth-of-type(#{$i}){
      transform:rotate($i * 1deg - 120)   
    }
  .partSmall:nth-of-type(#{$i}){
    transform:rotate($i * 1deg - 394)
  }
}
.outer{
  position:absolute;transform-origin: 0px 0px;
  left: 0;
  top: 0;
  -webkit-animation:rotateOuter 3s infinite;
  -moz-animation:rotateOuter 3s infinite;
  -o-animation:rotateOuter 3s infinite;
  -ms-animation:rotateOuter 3s infinite;
  &_part{
    position: absolute;
    height: 120px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    &__inner{
      width:2px;
      height:3px;
      background:rgba(189, 151, 41, 0.37);

    }

  }
  &_partSmall{
    position: absolute;
    height: 120px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    &__inner{
      width:2px;
      height:3px;
      background:rgba(189, 151, 41, 0.37);

    }

  }
  @for $i from 0 through 280{
    .outer_part:nth-of-type(#{$i}){
      transform:rotate($i * 1deg - 180);   
    }
  .outer_partSmall:nth-of-type(#{$i}){
    transform:rotate($i * 1deg - 130);   
  }
}
}
&_outer{
  &__ring{
    .ring_part{    position: absolute;
      height: 300px;
      left: 0;
      -webkit-animation:outerPulse 1.2s 0s linear infinite;
      -moz-animation:outerPulse 1.2s 0s linear infinite;
      -o-animation:outerPulse 1.2s 0s linear infinite;
      -ms-animation:outerPulse 1.2s 0s linear infinite;
      transform-origin:0px;
      right: 0;
      top: 0;
      bottom: 0;top: -100px;
      margin: auto;
      &__inner{
        width: 4px;
        height: 70px;
        background: rgba(255, 190, 0, 0.03);
      }
    }
  }
  @for $i from 1 through 360{
    .ring_part:nth-of-type(#{$i}){
      transform:rotate($i * 1deg);   
    }
}
}
}
@-moz-keyframes outerPulse{
  from{transform:scale(1);opacity:1}
  to{transform:scale(1.3);opacity:0;}
}
@-moz-keyframes rotateInner{
  0%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
  20%{transform:rotate(40deg);-moz-transform:rotate(40deg)}
  40%{transform:rotate(-50deg);-moz-transform:rotate(-50deg)}
  45%{transform:rotate(-50deg);-moz-transform:rotate(-50deg)}
  60%{transform:rotate(90deg);-moz-transform:rotate(90deg)}
  80%{transform:rotate(140deg);-moz-transform:rotate(140deg)}
  100%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
}
@-moz-keyframes rotateOuter{
  0%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
  20%{transform:rotate(-60deg);-moz-transform:rotate(-60deg)}
  40%{transform:rotate(-50deg);-moz-transform:rotate(-50deg)}
  45%{transform:rotate(12deg);-moz-transform:rotate(12deg)}
  60%{transform:rotate(43deg);-moz-transform:rotate(43deg)}
  80%{transform:rotate(-12deg);-moz-transform:rotate(-12deg)}
  100%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
}
@-moz-keyframes rotateCircle{
  0%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
  20%{transform:rotate(60deg);-moz-transform:rotate(60deg)}
  40%{transform:rotate(-30deg);-moz-transform:rotate(-30deg)}
  45%{transform:rotate(4deg);-moz-transform:rotate(4deg)}
  60%{transform:rotate(56deg);-moz-transform:rotate(56deg)}
  80%{transform:rotate(-12deg);-moz-transform:rotate(-12deg)}
  100%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
}
@-moz-keyframes textLeft{
  0%{top:0}
  20%{top:-3px}
  40%{top:-5px}
  45%{top:-10px}
  60%{top:-0px}
  80%{top:-14px}
  100%{top:0px}
}
@-moz-keyframes textBottom{
  0%{top:0}
  20%{top:-10px}
  40%{top:-20px}
  45%{top:0px}
  60%{top:-30px}
  80%{top:-12px}
  100%{top:0px}
}
@-webkit-keyframes outerPulse{
  from{transform:scale(1);opacity:1}
  to{transform:scale(1.3);opacity:0;}
}
@-webkit-keyframes rotateInner{
  0%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
  20%{transform:rotate(40deg);-moz-transform:rotate(40deg)}
  40%{transform:rotate(-50deg);-moz-transform:rotate(-50deg)}
  45%{transform:rotate(-50deg);-moz-transform:rotate(-50deg)}
  60%{transform:rotate(90deg);-moz-transform:rotate(90deg)}
  80%{transform:rotate(140deg);-moz-transform:rotate(140deg)}
  100%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
}
@-webkit-keyframes rotateOuter{
  0%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
  20%{transform:rotate(-60deg);-moz-transform:rotate(-60deg)}
  40%{transform:rotate(-50deg);-moz-transform:rotate(-50deg)}
  45%{transform:rotate(12deg);-moz-transform:rotate(12deg)}
  60%{transform:rotate(43deg);-moz-transform:rotate(43deg)}
  80%{transform:rotate(-12deg);-moz-transform:rotate(-12deg)}
  100%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
}
@-webkit-keyframes rotateCircle{
  0%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
  20%{transform:rotate(60deg);-moz-transform:rotate(60deg)}
  40%{transform:rotate(-30deg);-moz-transform:rotate(-30deg)}
  45%{transform:rotate(4deg);-moz-transform:rotate(4deg)}
  60%{transform:rotate(56deg);-moz-transform:rotate(56deg)}
  80%{transform:rotate(-12deg);-moz-transform:rotate(-12deg)}
  100%{transform:rotate(0deg);-moz-transform:rotate(0deg)}
}
@-webkit-keyframes textLeft{
  0%{top:0}
  20%{top:-3px}
  40%{top:-5px}
  45%{top:-10px}
  60%{top:-0px}
  80%{top:-14px}
  100%{top:0px}
}
@-webkit-keyframes textBottom{
  0%{top:0}
  20%{top:-10px}
  40%{top:-20px}
  45%{top:0px}
  60%{top:-30px}
  80%{top:-12px}
  100%{top:0px}
}
.loader_ring{
  width: 200px;
  height: 200px;
  border: 70px solid rgba(255, 190, 0, 0.08);
  position: absolute;
  border-radius: 100%;
  left: -169px;
  -webkit-animation:outerPulse 1s infinite;
  -moz-animation:outerPulse 1s infinite;
  -ms-animation:outerPulse 1s infinite;
  -o-animation:outerPulse 1s infinite;
  top: -170px;
}
            
          
!
            
              /* Nope not today */
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console