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.
<p>This is a paragraph of text <a href="#0">that has a link</a> inside of it.</p>
<button>Click me</button>
<form>
<label>
Name
<input type="text">
</label>
</form>
html {
--blue: #159ce4;
--lgt-blue: #3db5eb;
--drk-blue: #147ec1;
--black: #32383c;
}
a {
color: var(--blue);
transition: all 0.3s ease;
}
a:hover {
color: var(--lgt-blue);
}
a:focus {
outline: none;
box-shadow: 20px 15px 30px yellow, -20px 15px 30px lime, -20px -15px 30px blue, 20px -15px 30px red;
}
a:active {
color: var(--drk-blue);
}
button {
display: block;
padding: 12px 38px;
font-weight: bold;
font-size: 16px;
text-align: center;
color: var(--blue);
background-color: #fff;
border: 2px solid var(--blue);
border-radius: 24px;
cursor: pointer;
transition: all 0.3s ease;
width: 100%;
}
button:hover {
color: #fff;
background-color: var(--lgt-blue);
border-color: var(--lgt-blue);
}
button:active {
color: #fff;
background-color: var(--drk-blue);
border-color: var(--drk-blue);
}
button:focus {
outline: none;
box-shadow: 20px 15px 30px yellow, -20px 15px 30px lime, -20px -15px 30px blue, 20px -15px 30px red;
}
form {
width: 100%;
}
label {
display: block;
font-size: 16px;
color: var(--black);
width: 100%;
}
input[type="text"] {
padding: 10px 16px;
font-size: 16px;
color: var(--black);
background-color: #fff;
border: 1px solid #597183;
border-radius: 8px;
margin-top: 5px;
width: 100%;
transition: all 0.3s ease;
}
input[type="text"]:focus {
outline: none;
box-shadow: 20px 15px 30px yellow, -20px 15px 30px lime, -20px -15px 30px blue, 20px -15px 30px red;
}
/* For Demo */
body {
height: 100vh;
margin: 0;
padding: 2rem;
display: grid;
grid-gap: 2rem;
align-items: center;
grid-template-columns: repeat(3, 1fr);
font: 16px/1.4 system-ui, -apple-system, sans-serif;
}
* {
box-sizing: border-box;
}
Also see: Tab Triggers