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

              
                <html>
<head>

<link rel="stylesheet" href="css/style.css" />
<link href='https://fonts.googleapis.com/css?family=Actor' rel='stylesheet' type='text/css'>
</head>

<body>
<div class="loader">
    <h1>LOADING</h1>
    <span>
      <?xml version="1.0" encoding="UTF-8"?>
<svg width="174px" height="174px" viewBox="0 0 174 174" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
    <title>ico</title>
    <desc>Created with Sketch.</desc>
    <defs>
        <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
            <stop stop-color="#F5D9C8" offset="0%"></stop>
            <stop stop-color="#F5D9C8" offset="100%"></stop>
        </linearGradient>
    </defs>
    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <path d="M87.5,18 C93.5860054,18 97.7564794,19.9946593 100.011422,23.9839779 L169.769006,133.56269 C171.764672,139.593407 171.333834,144.610849 168.476493,148.615017 C165.619152,152.619185 161.335564,155.080846 155.62573,156 L18.3609254,156 C12.3750477,155.763123 8.18608471,153.301462 5.7940363,148.615017 C3.4019879,143.928572 3.4019879,138.461474 5.7940363,132.213722 L74.0152353,23.9839779 C76.919073,19.9946593 81.4139946,18 87.5,18 Z" id="形状结合" fill="url(#linearGradient-1)"></path>
        <rect id="矩形备份-3" x="1" y="0" width="174" height="174"></rect>
    </g>
</svg>
  </span>
    <span>
      <?xml version="1.0" encoding="UTF-8"?>
<svg width="174px" height="174px" viewBox="0 0 174 174" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
    <title>ico</title>
    <desc>Created with Sketch.</desc>
    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <path d="M87.5,18 C93.5860054,18 97.7564794,19.9946593 100.011422,23.9839779 L169.769006,133.56269 C171.764672,139.593407 171.333834,144.610849 168.476493,148.615017 C165.619152,152.619185 161.335564,155.080846 155.62573,156 L18.3609254,156 C12.3750477,155.763123 8.18608471,153.301462 5.7940363,148.615017 C3.4019879,143.928572 3.4019879,138.461474 5.7940363,132.213722 L74.0152353,23.9839779 C76.919073,19.9946593 81.4139946,18 87.5,18 Z" id="形状结合备份" fill="#F03053"></path>
        <rect id="矩形" x="0" y="0" width="174" height="174"></rect>
    </g>
</svg>
  </span>
    <span>
      <?xml version="1.0" encoding="UTF-8"?>
<svg width="174px" height="174px" viewBox="0 0 174 174" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
    <title>ico</title>
    <desc>Created with Sketch.</desc>
    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <path d="M87.5,18 C93.5860054,18 97.7564794,19.9946593 100.011422,23.9839779 L169.769006,133.56269 C171.764672,139.593407 171.333834,144.610849 168.476493,148.615017 C165.619152,152.619185 161.335564,155.080846 155.62573,156 L18.3609254,156 C12.3750477,155.763123 8.18608471,153.301462 5.7940363,148.615017 C3.4019879,143.928572 3.4019879,138.461474 5.7940363,132.213722 L74.0152353,23.9839779 C76.919073,19.9946593 81.4139946,18 87.5,18 Z" id="形状结合" fill="#FAA2A7"></path>
        <rect id="矩形备份-3" x="1" y="0" width="174" height="174"></rect>
    </g>
</svg>
  </span>
</div>
</body>
</html>
              
            
!

CSS

              
                body{
	background:#333;
	background: -webkit-gradient(radial, center center, 120, center center, 900, from(#33495E), to(#2E2329));
	background:-moz-radial-gradient(circle, #33495E, #2E2329);

}
.loader{
	margin:200px auto;
}
h1{
	font-family: 'Actor', sans-serif;
	color:#FFF;
	font-size:16px;
	letter-spacing:1px;
	font-weight:200;
	text-align:center;
}
.loader span{
	width:30px;
	height:30px;
	border-radius:50%;
	display:inline-block;
	position:absolute;
	left:50%;
	margin-left:-10px;
	-webkit-animation:3s infinite linear;
	-moz-animation:3s infinite linear;
	-o-animation:3s infinite linear;
	
}


.loader span:nth-child(2){
	-webkit-animation:kiri 1.2s infinite linear;
	-moz-animation:kiri 1.2s infinite linear;
	-o-animation:kiri 1.2s infinite linear;
	
}
.loader span:nth-child(3){
	z-index:100;
}  
.loader span svg{
    width:100%;
    height:auto;
  }
.loader span:nth-child(4){
	-webkit-animation:kanan 1.2s infinite linear;
	-moz-animation:kanan 1.2s infinite linear;
	-o-animation:kanan 1.2s infinite linear;
}


@-webkit-keyframes kanan {
    0% {-webkit-transform:translateX(20px);
    }
   
	50%{-webkit-transform:translateX(-20px);
	}
	
	100%{-webkit-transform:translateX(20px);
	z-index:200;
	}
}
@-moz-keyframes kanan {
    0% {-moz-transform:translateX(20px);
    }
   
	50%{-moz-transform:translateX(-20px);
	}
	
	100%{-moz-transform:translateX(20px);
	z-index:200;
	}
}
@-o-keyframes kanan {
    0% {-o-transform:translateX(20px);
    }
   
	50%{-o-transform:translateX(-20px);
	}
	
	100%{-o-transform:translateX(20px);
	z-index:200;
	}
}




@-webkit-keyframes kiri {
     0% {-webkit-transform:translateX(-20px);
	z-index:200;
    }
	50%{-webkit-transform:translateX(20px);
	}
	100%{-webkit-transform:translateX(-20px);
	}
}

@-moz-keyframes kiri {
     0% {-moz-transform:translateX(-20px);
	z-index:200;
    }
	50%{-moz-transform:translateX(20px);
	}
	100%{-moz-transform:translateX(-20px);
	}
}
@-o-keyframes kiri {
     0% {-o-transform:translateX(-20px);
	z-index:200;
    }
	50%{-o-transform:translateX(20px);
	}
	100%{-o-transform:translateX(-20px);
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console