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

              
                #error Error
.error-num 500
	.error-num__clip 500
	
p#desc Uh oh, there seems to be a problem.
p Let me help you find #[a(href='https://codepen.io/' target='_blank') a way out]


              
            
!

CSS

              
                // MISC

:root {
	font-size: 20px;	
	font-family: 'IBM Plex Mono';
	line-height: 1.5;
	color: rgba(white, 0.25);
}

body {
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background: #333333;
}

a { color: white; display: inline; }

#error {
	margin-bottom: 1rem;
	
	font-size: 2rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.075em;
	color: #C94D4D;	
	
	@keyframes pulse { 
		from { opacity: 0.5; } 
		50% { opacity: 0.5; } 
	}
	animation: pulse 4s infinite alternate;
	
	// "connection"
	position: relative;
	&::before {
		content: '';
		width: 0.75rem;
		height: 50vh;
		margin-bottom: 0.75em;
		
		position: absolute;
		left: 50%; bottom: 100%;
		transform: translateX(-50%);

		background: linear-gradient(to bottom,
			rgba(white, 0.1) 60%,
			transparent 100%
		);
	}
}

#desc {
	margin: 2em 0 1em;
}


// 500 ERROR NUMBER

.error-num {
	position: relative;
	font-size: 10rem;
	font-family: 'Oswald';
	letter-spacing: -0.01em;
	color: white;
	
	@keyframes colorSplit {
		25% { text-shadow: -0.02em 0 0 #ED008C, 0.025em 0 0 #0087EF; }
		75% { text-shadow: -0.035em 0 0 #ED008C, 0.04em 0 0 #0087EF; }
	}
	animation: colorSplit 1.25s steps(2, end) infinite;
}

.error-num__clip {
	@extend .error-num;
	position: absolute;
	// left: -2px to cover up the horizontal outline
	// that occurs from overlapping
	top: 0; left: -2px;
	z-index: 10;
	
	color: #333;
	overflow: visible;
	clip-path: polygon(
		0% 0%, 100% 0, 100% 25%, 0 25%, 
		0 30%, 100% 30%, 100% 50%, 0 50%,
		0 60%, 100% 60%, 100% 65%, 0 65%,
		0 80%, 100% 80%, 100% 85%, 0 85%,
	0% 0%);
	
	@keyframes glitch {
		30% { left: 0; }
		to { left: 0; }
	}
	
	animation: glitch 1s steps(2, start) infinite;	
	
	&::before { 
		content: '500';
		@extend .error-num__clip;
		left: 0.05em;
		color: white;
		z-index: 9;
		
		// only way to get rid of pesky
		// vertical outline due to overlapping is
		// making polygon 1% taller
		clip-path: polygon(
			0% 0%, 100% 0, 100% 26%, 0 26%, 
			0 29%, 100% 29%, 100% 51%, 0 51%,
			0 59%, 100% 59%, 100% 66%, 0 66%,
			0 79%, 100% 79%, 100% 86%, 0 86%,
		0% 0%);
	}
}

.error-num__clip-left {
	@extend .error-num__clip;
}
              
            
!

JS

              
                /*
\(")/
-( )-
/(_)\
*/
              
            
!
999px

Console