cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

              $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(https://3.bp.blogspot.com/-VohIAKg72C4/UJPNPsLZxhI/AAAAAAAANG8/-dUsv9bqXyI/s1600/Winter+Desktop+Wallpapers+and+Backgrounds+5.jpg) 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(https://1.bp.blogspot.com/-JDyNMKZlSJ0/UJPMu9df5JI/AAAAAAAANGk/upRNweuOtrI/s1600/Winter+Desktop+Wallpapers+and+Backgrounds+2.jpg) 50%/ cover #000;
		font: 700 8vmin/ #{$section-h} comic sans ms, sans-serif;
		text-align: center;
		content: 'Boo!';
Loading ..................