Pen Settings

HTML

CSS

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

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

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.

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

              
                <h3>lorem</h3>
              
            
!

CSS

              
                @import 'compass/css3';

$nl: 5;
$rs: 2rem;
$rc: $nl*$rs;
$np: 3;
$ls: 2*$rs*sin(180deg/$np);
$hs: 1.5*$rs;
$hl: .5*$nl*$ls;
$bw: .25rem;
$pd: 1rem;
$of: $bw + $pd;
$md: $rc + $of;
$dm: 2*$md;

$c: #fe5e00 /* 01 orange */, 
		#008c72 /* 02 teal */, 
		#7e725c /* 03 khaki */, 
		#b40001 /* 04 crimson */, 
		#00336a /* 05 navy */, 
		#ffdb00 /* 06 yellow */, 
		#ff00aa /* 07 fuchsia */, 
		#006e8f /* 08 blue */, 
		#345c64 /* 09 seagrey */, 
		#e36684 /* 10 pink */, 
		#2a2424 /* 11 dimgrey */, 
		#061d23 /* 12 black */, 
		#ffa200 /* 13 gold */, 
		#603912 /* 14 brown */;

@mixin poly($q: 3, $r: 50%) {
	$ba: 360deg/$q;
	$po: ();
	$pm: ();
	$pi: ();
	
	@for $i from 0 through $q {
		$ca: $i*-$ba - 90deg;
		$pm: $pm, 
			calc(50% + (50% - #{$bw})*#{cos($ca)})
			calc(50% + (50% - #{$bw})*#{sin($ca)});
		$ca: $i*$ba - 90deg;
		$po: $po, 
			50%*(1 + cos($ca))
			50%*(1 + sin($ca));
		$pi: $pi, 
			calc(50% + #{$r*cos($ca)})
			calc(50% + #{$r*sin($ca)});
	}
	
	--poly: polygon(#{$po, $pm, $pi});
	-webkit-clip-path: var(--poly);
					clip-path: var(--poly)
}

* { margin: 0 }

h3 {
	display: grid;
	place-content: center;
	height: 100vh;
	background: 
		linear-gradient(rgba(#777, .65), rgba(#fff, .75)), 
		url(https://images.unsplash.com/photo-1488867605300-0380106bc701?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ) 50%/ cover;
	font: 900 3em/ 1.125 sans-serif;
	text-align: center;
	text-transform: uppercase;
	
	&::before {
		margin-bottom: $of - .5*$rc;
		width: $dm; height: $dm;
		transform: rotate(120deg);
		--args: #{at 50% 0}, #{rgba(#000, .75)}, transparent 70%;
		background: 
			linear-gradient(
				transparent calc(50% + .5*#{$rc + $pd}), #000 0) /* 1 triangle edge */, 
			conic-gradient(from 150deg at 50% $bw + .5*$pd, 
					transparent 0% 60deg, #000 0%) /* 2 triangle edges */, 
			radial-Gradient(var(--args)) 
				50% #{$of + $hs}/ #{$ls .25*$hs} /* shadow */, 
			radial-Gradient(var(--args)) 
				50% #{$of + 2*$hs}/ #{2*$ls .25*$hs} /* shadow */, 
			radial-Gradient(var(--args)) 
				50% #{$of + 3*$hs}/ #{3*$ls .25*$hs} /* shadow */, 
			radial-Gradient(var(--args)) 
				50% #{$of + 4*$hs}/ #{4*$ls .25*$hs} /* shadow */, 
			conic-gradient(from 30deg at 0 100%, 
					nth($c, 14) 0% 60deg, 
					transparent 0%) 
				#{$md + 1.5*$ls} #{$of + 4*$hs}/ #{$ls $hs} /* right bottom corner */, 
			conic-gradient(from -90deg at 100% 100%, 
					nth($c, 2) 0% 60deg, 
					transparent 0%) 
				#{$md - 2.5*$ls} #{$of + 4*$hs}/ #{$ls $hs} /* left bottom corner */, 
			conic-gradient(from -30deg, 
					nth($c, 5) 0% 60deg, 
					transparent 0% 180deg, 
					nth($c, 4) 0% 240deg, 
					transparent 0%) 
				50% #{$of + 3*$hs}/#{$ls 2*$hs} /* mid bottom hex */, 
			conic-gradient(from 30deg, 
					nth($c, 4) 0% 60deg, 
					nth($c, 13) 0% 120deg, 
					nth($c, 3) 0% 180deg, 
					nth($c, 1) 0% 240deg, 
					transparent 0 0%) 
				#{$md $of + 3*$hs}/ #{2*$ls 2*$hs} /* right bottom hex */, 
			conic-gradient(from 90deg, 
					nth($c, 12) 0% 60deg, 
					nth($c, 7) 0% 120deg, 
					nth($c, 3) 0% 180deg, 
					nth($c, 1) 0% 240deg, 
					transparent 0 0%) 
				#{$md - 2*$ls $of + 3*$hs}/ #{2*$ls 2*$hs} /* left bottom hex */, 
			conic-gradient(from 30deg at .5*$ls 50%, 
					nth($c, 8) 0% 60deg, 
					nth($c, 11) 0% 120deg, 
					nth($c, 10) 0% 180deg, 
					transparent 0 0%) 
				#{$md $of + 2*$hs}/ #{1.5*$ls 2*$hs} /* right wrap top hex */, 
			conic-gradient(from 150deg at $ls 50%, 
					nth($c, 9) 0% 60deg, 
					nth($c, 5) 0% 120deg, 
					nth($c, 4) 0% 180deg, 
					transparent 0 0%) 
				#{$md - 1.5*$ls $of + 2*$hs}/ #{1.5*$ls 2*$hs} /* left wrap top hax */, 
			conic-gradient(from -30deg, 
					nth($c, 3) 60deg, 
					nth($c, 2) 0% 120deg, 
					nth($c, 7) 0% 180deg, 
					nth($c, 6) 0% 240deg, 
					nth($c, 5) 0% 300deg, 
					nth($c, 2) 0%) 
				50% #{$of + $hs}/ #{2*$ls 2*$hs} /* top mid hexagon */
			nth($c, 1) /* top orange */;
		background-repeat: no-repeat;
		@include poly(3, $rc);
		content: ''
	}
	
	&::after {
		font: 200 .5em/ 1 sans-serif;
		letter-spacing: 1.125em;
		text-indent: 1.125em;
		content: 'ipsum'
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console