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="fullscreen">
<div class="cloud">
<img src="https://carterrink.com/assets/images/cloudlg.png">
</div>
<div class="forecast">
<h1>Cloudy</h1>
</div>
<div class="city">
<h1>Boston, MA</h1>
</div>
<div class="temp">
<h1>54 °</h1>
</div>
</div>
<div class="scroll">
<h2>You're reading this, but only after you <span>scrolled</span>. The background image covers 100% of the viewport since vh & vw are set to 100 (100% of the viewport).</h2>
</div>
@import url(https://fonts.googleapis.com/css?family=Roboto:400,900,500)
.fullscreen
background-image: url("https://carterrink.com/assets/images/clouds.jpg")
height: 100vh
width: 100vw
position: relative
background-size: cover
background-repeat: no-repeat
.cloud
margin: 0
position: absolute
top: 110px
left: 50%
margin-right: -50%
transform: translate(-50%, -16%)
.forecast
margin: 0
position: absolute
top: 330px
left: 50%
margin-right: -50%
transform: translate(-50%, -54%)
font-size: 34px
color: white
font-family: 'Roboto', sans-serif
.city
margin: 0
position: absolute
top: 390px
left: 50%
margin-right: -50%
transform: translate(-50%, -64%)
font-size: 14px
color: white
font-family: 'Roboto', sans-serif
.temp
margin: 0
position: absolute
top: 450px
left: 51%
margin-right: -50%
transform: translate(-51%, -75%)
font-size: 18px
color: white
font-family: 'Roboto', sans-serif
.scroll
background-color: #172c4f
color: white
margin-bottom: 160px
padding: 80px 16px
font-family: Roboto
margin: 0 auto
line-height: 200%
text-align: center
span
color: #ba3733
Also see: Tab Triggers