JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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>
<div class="progress-bar-container">
<div class="progress-bar stripes">
<span class="progress-bar-inner"></span>
</div>
<div class="progress-bar stripes animated reverse slower">
<span class="progress-bar-inner"></span>
</div>
</div>
</div>
body, html {
height: 100%;
background: #0e0e15;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
@keyframes animate-stripes {
0% {
background-position: 0 0;
}
100% {
background-position: 60px 0;
}
}
@keyframes auto-progress {
0% {
width: 0%;
}
100% {
width: 100%;
}
}
.progress-bar {
background-color: #1a1a1a;
height: 45px;
width: 450px;
margin: 50px auto;
border-radius: 5px;
box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
}
.stripes {
background-size: 30px 30px;
background-image: linear-gradient(
135deg,
rgba(255, 255, 255, .15) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, .15) 50%,
rgba(255, 255, 255, .15) 75%,
transparent 75%,
transparent
);
}
.stripes.animated {
animation: animate-stripes 0.6s linear infinite;
}
.stripes.animated.slower {
animation-duration: 1.25s;
}
.stripes.reverse {
animation-direction: reverse;
}
.progress-bar-inner {
display: block;
height: 45px;
width: 0%;
background-color: #34c2e3;
border-radius: 3px;
box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
position: relative;
animation: auto-progress 10s infinite linear;
}
Also see: Tab Triggers