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="boxes withlabel">
<input type="checkbox" id="rj-1">
<label for="rj-1">Hello World</label>
<input type="checkbox" id="rj-2" checked>
<label for="rj-2">RJ Code for every one </label>
<input type="checkbox" id="rj-3">
<label for="rj-3">Checkbox with label</label>
</div>
<div class="boxes without">
<input type="checkbox" id="box-1">
<input type="checkbox" id="box-2" checked>
<input type="checkbox" id="box-3">
</div>
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
/*Page styles*/
html { height: 100%; }
body {
height: 100%;
margin: 0;
background: #333;
display: -webkit-flex;
display: flex;
align-items: center;
}
.boxes {
margin: auto;
padding: 50px;
background: #F46A4A;
}
/* With label Checkboxes styles*/
.withlabel input[type="checkbox"] { display: none; }
.withlabel input[type="checkbox"] + label {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 20px;
font: 14px/20px 'Open Sans', Arial, sans-serif;
color: #fff;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
.withlabel input[type="checkbox"] + label:last-child { margin-bottom: 0; }
.withlabel input[type="checkbox"] + label:before {
content: '';
display: block;
width: 20px;
height: 20px;
border: 2px solid #fff;
position: absolute;
left: 0;
top: 0;
opacity: .6;
-webkit-transition: all .12s, border-color .08s;
transition: all .12s, border-color .08s;
}
.withlabel input[type="checkbox"]:checked + label:before {
width: 10px;
top: -5px;
left: 5px;
border-radius: 0;
opacity: 1;
border-top-color: transparent;
border-left-color: transparent;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
/*Checkboxes styles*/
.without input[type="checkbox"] {
display: block;
position: relative;
margin-bottom: 20px;
width:0;
cursor: pointer;
}
.without input[type="checkbox"]:last-child { margin-bottom: 0; }
.without input[type="checkbox"]:before {
content: '';
background:#F46A4A;
display: block;
width: 20px;
height: 20px;
border: 2px solid #fff;
position: absolute;
left: 0;
top: 0;
-webkit-transition: all .12s, border-color .08s;
transition: all .12s, border-color .08s;
}
.without input[type="checkbox"]:checked:before {
width: 10px;
top: -5px;
left: 5px;
border-radius: 0;
opacity: 1;
border-top-color: transparent;
border-left-color: transparent;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
Also see: Tab Triggers