Pen Settings



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


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


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.


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.

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.


<div class="container">
	<div class="row">
	<div class="col-xs-12 text-center loader-container">

<!-- 		Paset the SVG code here -->
		<?xml version="1.0" encoding="UTF-8"?>
<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="" xmlns:xlink="">
    <!-- Generator: Sketch 49.3 (51167) - -->
    <desc>Created with Sketch.</desc>
        <polygon id="path-1" points="119 176 153 176 181.165039 229 147.165039 229"></polygon>
    <g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <polygon id="red" class="redOutline" stroke="#D20217" stroke-width="5" points="142 140 261 204.00774 261 264.00774 142 200"></polygon>
        <polygon id="white" stroke="#FFFFFF" stroke-width="3" fill="#FFFFFF" points="141 202.599373 262 138.48 262 200.840627 141 264.96"></polygon>
        <g id="progress1" class="progressBlock">
            <use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-1"></use>
            <path stroke="#FFFFFF" stroke-width="1" d="M119.831924,176.5 L147.465547,228.5 L180.333115,228.5 L152.699492,176.5 L119.831924,176.5 Z"></path>
        <polygon id="progress2" class="progressBlock" fill="#FFFFFF" points="152 176 186 176 214.165039 229 180.165039 229"></polygon>
        <polygon id="progress3" class="progressBlock" fill="#FFFFFF" points="185 176 219 176 247.165039 229 213.165039 229"></polygon>
        <polygon id="progress4"  class="progressBlock" fill="#FFFFFF" points="218 176 252 176 280.165039 229 246.165039 229"></polygon>
        <path d="M142.5,200.5 L204.5,233.5" id="redOverlap" stroke="#D20217" stroke-width="5" stroke-linecap="square"></path>

<div class="row text-center">
	<div class="col-xs-12">
		<button class="btn start" onclick="startLoading()">Simulate Loading</button>




/* Start animation CSS */
.progressBlock {
  opacity: 0;

#red {
	transform-origin: 50% 50%;
	transition: 0.25s ease;

	transform: rotate(-27.5deg) translate(-2px,0);

#redOverlap {
	transition: 0.25s ease;

#redOverlap.loading {
	opacity: 0;

/* Some housekeeping CSS */
body {
  background: #3D4346 !important;

.loader-container {
  margin: auto;
  overflow: hidden;

.btn {
	padding: 10px 15px;
	border: 2px solid red;
	letter-spacing: 2px;
	-webkit-transition: all 0.25s ease;
	-o-transition: all 0.25s ease;
	transition: all 0.25s ease;

.btn:hover {
	border-color: white;

.btn.focus, .btn:focus, .btn:hover {
    color: white;
/* End housekeeping CSS */


                function startLoading(){
  // set loading class on elements"#red").addClass('loading')"#redOverlap").addClass('loading')