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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="container">
	<div class="shape"></div>
	<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Arcu bibendum at varius vel pharetra vel turpis. Lobortis scelerisque fermentum dui faucibus in. Amet consectetur adipiscing elit pellentesque habitant. Dignissim cras tincidunt lobortis feugiat. Senectus et netus et malesuada fames ac turpis egestas sed. Risus commodo viverra maecenas accumsan lacus vel facilisis volutpat est. Diam quis enim lobortis scelerisque fermentum dui faucibus in. Netus et malesuada fames ac. Blandit massa enim nec dui nunc mattis. Est placerat in egestas erat imperdiet sed.

Ultrices in iaculis nunc sed augue. Blandit aliquam etiam erat velit scelerisque. Nec ultrices dui sapien eget mi proin sed. Nibh tortor id aliquet lectus. Arcu vitae elementum curabitur vitae nunc sed velit dignissim sodales. Ac tortor vitae purus faucibus ornare suspendisse. Enim praesent elementum facilisis leo vel fringilla est ullamcorper. Non consectetur a erat nam at lectus urna duis convallis. Euismod lacinia at quis risus sed. Sem integer vitae justo eget magna fermentum iaculis eu. Velit euismod in pellentesque massa placerat duis ultricies. Scelerisque fermentum dui faucibus in ornare. Ut consequat semper viverra nam libero justo laoreet sit amet. Tortor pretium viverra suspendisse potenti nullam ac tortor vitae purus. Varius vel pharetra vel turpis nunc eget lorem dolor sed. Sed id semper risus in.</p>
              * {
	box-sizing: border-box;

.container {
	margin: 20px;
	padding-right: 20px;
	border: 2px solid #F48FB1;
	height: 360px;
	max-width: 800px;
	background-color: #FFECB3;
	clip-path: polygon(100px 0, 100% 0, 100% 100%, 100px 100%, 180px 180px);
	// box-shadow: 5px 5px 20px #212121; this won’t be visible as it’s being clipped

.shape {
	width: 200px;
	height: 350px;
	float: left;
	shape-outside: polygon(0 0, 100px 0, 180px 50%, 100px 100%, 0 100%);
	clip-path: polygon(0 0, 100px 0, 180px 50%, 100px 100%, 0 100%);
	shape-margin: 10px;

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.