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 class="wrapper">
<p>
This demonstrates how a border gradient
can be applied to a single element using
multiple backgrounds and specifying the
background origin of each of those
backgrounds.
</p>
</div>
<div class="wrapper wrapper--rounded">
<p>
It gets a little weird when you want to
round the corners off. A pseudo element
can be used to establish a clean rounded
corner on the inside.
</p>
<p>
You will need to tweak the dimmensions
of the position, border, and radius to
get things just right.
</p>
</div>
.wrapper {
box-sizing: border-box;
margin: 1rem auto 2rem;
padding: 1rem;
width: 80%;
max-width: 25rem;
background: linear-gradient(#222, #222),
linear-gradient(to right, red, purple);
border: 5px solid transparent;
background-repeat: no-repeat;
background-origin: padding-box, border-box;
}
.wrapper--rounded {
border-radius: 1rem;
border-width: 10px;
position: relative;
}
.wrapper--rounded::before {
content: "";
position: absolute;
top: -5px;
bottom: -5px;
left: -5px;
right: -5px;
border: 6px solid #222;
border-radius: .8rem;
}
body {
background: #222;
}
p {
font-family: sans-serif;
color: whitesmoke;
line-height: 1.4;
}
Also see: Tab Triggers