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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <section class='angled'></section>


                $section-w: 100vw; // width, pick any value
$section-h: 15vmin; // height without angled part, pick any value; of course, you could even let this be determined by the height of its content
$section-a: 5deg; // angle, pick any value
$angled-h: $section-w*tan($section-a); // angled part height

body {
	overflow-x: hidden;
	margin: 0;
	height: 100vh;
	background: url( 50%/ cover #ddd;
	background-blend-mode: overlay;

.angled {
	overflow: hidden;
	position: relative;
	width: $section-w;
	height: calc(#{$section-h} + #{$angled-h});
	transform-origin: 0 0;
	transform: skewY(-$section-a);
	box-shadow: 0 2px 1em dodgerblue, 
		0 4px 2em crimson, 0 6px 3em darkorange;
	&:before {
		position: absolute;
		right: 0; bottom: 0; left: 0;
		height: calc(#{$section-h} + #{$angled-h});
		transform-origin: 0 100%;
		transform: skewY($section-a);
		background: url( 50%/ cover #000;
		font: 700 8vmin/ #{$section-h} comic sans ms, sans-serif;
		text-align: center;
		content: 'Boo!';