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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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 ..................