Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML

              
                <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>


              
            
!

CSS

              
                @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%; }
}
              
            
!

JS

              
                
              
            
!
999px

Console