Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <article class="showcase">
	<h2 class="showcase__title">The art of text shadows</h2>
	<p class="showcase__content">
		<span class="icecream">Icecream</span>
	</p>
	<p class="showcase__content">
		<span class="anaglyph">Anaglyph</span>
	</p>
	<p class="showcase__content">
		<span class="hamburger">Hamburger</span>
	</p>
	<p class="showcase__content">
		<span class="neon">Neon</span>
	</p>
	<p class="showcase__content">
		<span class="disco">Disco</span>
	</p>
	<p class="showcase__content">
		<span class="bevel">Bevel</span>
	</p>
	<p class="showcase__content">
		<span class="hitech">Hi-tech</span>
	</p>
	<p class="showcase__content">
		<span class="ghost">Ghost</span>
	</p>
	<p class="showcase__content">
		<span class="retro">Retro</span>
	</p>
	<p class="showcase__content">
		<span class="warhol">Warhol</span>
	</p>
	<p class="showcase__content">
		<span class="pyramid">Pyramid</span>
	</p>
</article>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Dawning+of+a+New+Day|Sniglet:800|Monoton|Fredoka+One|Lobster);

.icecream {
	font: 900 64px/64px sans-serif;
	letter-spacing: 2px;
	color: #78452e;
	text-shadow: -1px 0 0 #3c261c,
		-4px 0 0 #d0b4a7,
		-6px 0 0 #78452e,
		-8px 0 0 #3c261c;
	text-transform: uppercase;
}
.anaglyph {
	font: 600 64px/64px sans-serif;
	letter-spacing: 2px;
	text-shadow: -3px 0 0 rgba(255,0,0,.7),
		3px 0 0 rgba(0,255,255,.7);
}
.hamburger {
	font: 800 64px/64px 'Sniglet', sans-serif;
	color: #e1b38e;
	text-shadow: -1px 1px 0 #9a653b,
		-2px 2px 0 #9a653b,
		-6px 1px 0 #690,
		2px 4px 0 #a10,
		-3px 3px 0 #e1b38e,
		-4px 4px 0 #9a653b,
		-5px 5px 0 #9a653b;
}
.neon {
	font: 100 64px/64px 'Dawning of a New Day', cursive;
	text-shadow: 0 -1px 0 #f00,
		0 2px 0 #f00,
		0 4px 0 #60f,
		-2px -2px 15px #f06,
		2px -2px 15px #f06,
		-2px 2px 15px #f06,
		2px 2px 15px #f06;
}
.disco {
	font: 100 64px/64px 'Monoton', sans-serif;
	letter-spacing: 10px;
	text-shadow: -2px 2px 0 #292322,
		-4px 4px 0 #f60,
		-6px 6px 0 #292322,
		-8px 8px 0 #fc0;
	text-transform: uppercase;
}
.bevel {
	font: 400 64px/64px 'Fredoka One', sans-serif;
	letter-spacing: 4px;
	text-shadow: 0 -3px 0 #ddd,
		0 3px 0 #111,
		-3px 0 #666,
		3px 0 #666,
		-3px -3px 0 #999,
		3px -3px 0 #999,
		3px 3px 0 #333,
		-3px 3px 0 #333;
	text-transform: uppercase;
}
.hitech {
	font: 600 64px/64px sans-serif;
	color: #000;
	text-shadow: 0 -1px 0 #0cf,
		0 1px 0 #00c,
		0 0 12px #09f;
}
.ghost {
	font: 600 64px/64px serif;
	letter-spacing: -10px;
	color: transparent;
	text-shadow: 3px 0 1px rgba(255,255,255,.3),
		-3px 0 1px rgba(255,255,255,.3);
	text-transform: uppercase;
}
.retro {
	font: 400 64px/64px 'Fredoka One', sans-serif;
	color: #f80;
	text-shadow: 0 2px 0 #292322,
		0 3px 0 #c40,
		0 4px 0 #c40,
		0 5px 0 #c40,
		0 6px 0 #c40;
	text-transform: uppercase;
}
.warhol {
	position: relative;
	z-index: 9;
	display: inline-block;
	width: 200px;
	padding: 10px;
	font: 400 64px/64px 'Lobster', cursive;
	color: #30f;
	text-shadow: -2px 2px 0 #000,
		220px 0 0 #6c0,
		218px 2px 0 #000,
		-220px 0 0 #f30,
		-218px 2px 0 #000;
	background: #fc3;

	&:after {
		position: absolute;
		top: 0;
		left: 100%;
		z-index: -1;
		display: block;
		width: 220px;
		height: 84px;
		background: #f36;
		content: "";
	}
	&:before {
		position: absolute;
		top: 0;
		left: -100%;
		z-index: -1;
		display: block;
		width: 220px;
		height: 84px;
		background: #63f;
		content: "";
	}
}

.pyramid {
	font: 800 64px/64px sans-serif;
	color: #fd6;
	text-shadow: 0 2px 0 #292322,
		2px 2px 0 #292322,
		-2px 2px 0 #292322,
		0 4px 0 #fc0,
		3px 4px 0 #fc0,
		-3px 4px 0 #fc0,
		0 6px 0 #eb0,
		-4px 6px 0 #eb0,
		4px 6px 0 #eb0,
		0 8px 0 #da0,
		-5px 8px 0 #da0,
		5px 8px 0 #da0,
		0 10px 0 #c90,
		-6px 10px 0 #c90,
		6px 10px 0 #c90,
		0 12px 0 #b80,
		-7px 12px 0 #b80,
		7px 12px 0 #b80,
		0 14px 0 #a70,
		-8px 14px 0 #a70,
		8px 14px 0 #a70,
		0 16px 0 #960,
		-9px 16px 0 #960,
		9px 16px 0 #960,
		0 18px 0 #850,
		-10px 18px 0 #850,
		10px 18px 0 #850,
		0 20px 0 #740,
		-11px 20px 0 #740,
		11px 20px 0 #740;
	text-transform: uppercase;
}

// Hide shadows on hover
.showcase__content>span{
	transition:all 0.5s ease-in-out;
}
.showcase__content>span:hover {
	text-shadow: none;
}


.showcase {
	position: relative;
	padding: 25px;
	text-align: center;

	&:before {
		position: absolute;
		top: 50px;
		left: 10%;
		display: block;
		width: 80%;
		border-bottom: 1px solid #fff;
		content: "";
	}

	&__title {
		position: relative;
		z-index: 9;
		display: inline-block;
		font: 400 16px/24px serif;
		text-transform: uppercase;
		background: #292322;

		&:before {
			font-family: sans-serif;
			content: "\2725  ";
		}
		&:after {
			font-family: sans-serif;
			content: "  \2725";
		}
	}

	&__content {
		padding: 25px;
	}
}

body {
	color: #fff;
	background: #292322;
}
              
            
!

JS

              
                
              
            
!
999px

Console