Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

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="quote">
  <span class="line1">If you haven’t</span>
  <span class="line2">surprised</span>
  <span class="line3">yourself yet,</span>
  <span class="line4">you haven’t done</span>
  <span class="line5">enough</span>
  <span class="line6">sketching</span>

  <cite>—Josh Collinsworth</cite>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Lato:900|Fredericka+the+Great|Oswald:700|Vidaloka);

html {
	font-size: 200%;
  /* This can be changed and all text will resize! */	
}

body {
  background: #424242;
}

.quote {
	margin: 2rem auto;	
	width: 20.5rem;
}

span {
	display: block;
	text-rendering: optimizeLegibility; /* Better kerning, worse performance */
}

.line1 {
	font: 2rem/2.5rem 'Lato', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.35rem;
	color: #9DE7C5;
	text-shadow: -4px 3px 0 #424242,
				      -6px 5px 0 rgba(255,255,255,0.125);
  /* If I wanted to be extra-fancy, I could also define
     text-shadows in rems (instead of pixels) to make
     them resize when the font-size was adjusted */
}

.line2 {
	font: 4.25rem/4.5rem 'Oswald', sans-serif;
	letter-spacing: 0.15rem;
	text-transform: uppercase;
	color: #fff;
	text-shadow: -1px  1px 0 #424242,
			     	 -4px  4px 0 #424242, 
			     	 -5px  5px 0 rgb(59, 234, 147),		
			     	 -6px  6px 0 rgb(59, 234, 147),
			     	 -7px  7px 0 rgb(15, 179, 186),
			     	 -8px  8px 0 rgb(15, 179, 186),
	     			 -9px  9px 0 rgb(15, 95, 186),
		    		 -10px 10px 0 rgb(15, 95, 186),
		    		 -11px 11px 25px #000;
}

.line3 {
	font: 2.45rem/3.45rem 'Vidaloka', serif;
	text-transform: uppercase;
	letter-spacing: 0.25rem;
	color: rgb(135, 207, 87);
	text-shadow: -2px 2px 5px #000;
}

.line4 {
	font: bold 1.5rem/1rem 'Lato', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.15rem;
	margin-top: 1.25rem;
	color: #7DDDCE;
	
}

.line5 {
	font: 4.25rem/3.5rem 'Vidaloka', serif;
	text-align: right;
	margin-right: 0.5rem;
	color: #3BDDC4;
	position: relative;
}

.line5:after {
	content: 'enough';
	position: absolute;
	top: 0px;
	right: 0px;
	filter: blur(5px); /* Unsupported as-is in Firefox */
	color: rgba(0, 0, 0, 0.5);
}

.line6 {
	font: 4.6rem/4.25rem 'Fredericka the Great', cursive;
	color: #FFF;
	text-shadow:  0   1px #2b2b2b,
	             -1px 0   #000,
	             -1px 2px #2b2b2b,
	             -2px 1px #000,
	             -2px 3px #2b2b2b,
	             -3px 2px #000,
	             -3px 4px #2b2b2b,
	             -4px 3px #000,
	             -4px 5px #2b2b2b,
	             -5px 4px #000,
	             -5px 6px #2b2b2b,
	             -6px 5px #000,
	             -6px 7px #2b2b2b,
	             -7px 6px #000,
	             -7px 8px #2b2b2b,
	             -8px 7px #000;
}

cite {
	font: 0.85rem 'Lato', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.4rem;
	color: #222;
}
            
          
!
            
              // All webfonts via Google Fonts
// Created as a demonstration for WEB175 Website Development
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console