Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Packages

Add 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 or require. We'll also process your JavaScript with Babel.

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

Behavior

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

            
              <div class="confirm-box">
  <h1>Please wait while your download is processing.</h1>
  <div id="progress-bar">
  	<div id="inner-pb"></div>
  </div>
  <a href="#" title="Cancel">Cancel</a>
</div>


            
          
!
            
              @import "compass/css3";

* {
  padding:0;
  margin:0;
  box-sizing:border-box;
}

.confirm-box {
	width:280px;
  position:relative;
  margin:30px auto;
  
  color:rgba(0,0,0,0.7);
  font-family:Helvetica;
  font-size:15px;
  font-weight:bold;
  
  background:#DDD;  
  border-radius:0.4em;
  border:1px solid rgba(0,0,0,0.6);
  box-shadow:0 0 10px rgba(0,0,0,0.4);  
  
  &:after {
   	content:"";
    display:table;
    clear:both;
  }

}

.confirm-box h1 {
 	text-align:center; 
  padding:10px 30px;
  line-height:1.2em;
  border-radius:0.4em 0.4em 0 0;
  text-shadow:0 1px 0 rgba(255,255,255,0.1);
	border-bottom:1px solid rgba(0,0,0,0.3);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 30px 30px rgba(255,255,255,0.2);
  margin-bottom:15px;
  background:#0088CC;
}


.confirm-box a {
 	display:block;
  position:relative;
  
  padding:7px 40px;
  width:130px;
  margin:0 auto;
  margin-bottom:15px;
  
  text-decoration:none;
  text-align:center;
  font-size:13px;

  border:1px solid rgba(0,0,0,0.7);
  border-radius:0.2em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 20px 20px rgba(255,255,255,0.2),
    1px 2px 1px rgba(0,0,0,0.2),
    0 0 2px 8px rgba(50,50,50,0.1);
  transition:all 0.3s ease-out;
  background:#d02211;
  z-index:100;
  
  font-weight:bold;
  color:rgba(0,0,0,0.6);
  text-shadow:0 1px 0 rgba(255,255,255,0.2);
  -webkit-font-smoothing: subpixel-antialiased;

  
  &:hover {
   	 box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.5),
      inset 0 -20px 20px rgba(200,200,200,0.1),
      1px 2px 1px rgba(0,0,0,0.2),
      0 0 2px 8px rgba(100,100,100,0.1);
  }
  
  &:active {
   	top:1px; 
  }

}

#progress-bar {
 	width:90%;
  margin:0 auto;
  margin-bottom:15px;
	height:28px;
  border:1px solid rgba(0,0,0,0.8);
  background:#232323;
  border-radius:1em;
  box-shadow:inset 0 0 5px rgba(0,0,0,0.5);
}

#inner-pb {
	position:relative;
  border:1px solid rgba(0,0,0,0.8);
  width:0;
  
  
  height:22px;
  margin-left:5px;
  margin-top:2px;
  
  background:repeating-linear-gradient(-45deg, #0077CC, #0077CC 20px, #0099FF 20px, #0099FF 40px);
  border-radius:0.8em;
  animation: roll 5s linear infinite;
  box-shadow: 
    inset 0 10px 10px rgba(255,255,255,0.2), 
    inset 0 1px 0 rgba(255,255,255,0.3), 
    inset 0 -5px 3px rgba(0,0,0,0.2),
    0 3px 2px rgba(0,0,0,0.3);
}

@-moz-keyframes roll {
	0% { width:0; }
  100% { width:95%; }
}

@-webkit-keyframes roll {
	0% { width:0; }
  100% { width:95%; }
}
            
          
!
999px

Console