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

Packages

Add 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 or require. We'll also process your JavaScript with Babel.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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='set'></div>
            
          
!
            
              body { margin: 0; overflow: hidden; background: #c3b49f; }
.set {
	position: relative;
	margin: 1em auto;
	width: 32em; height: 32em;
	border-radius: 50%;
	transform: rotate(22.5deg);
	box-shadow: 0 0 .5em gainsboro, inset 0 0 .5em gainsboro;
	background: lemonchiffon 
				radial-gradient(#447a3c 10%, transparent 12%, 
				transparent 21%, #447a3c 23%, #447a3c 32%, transparent 34%, 
				transparent 43%, #447a3c 45%, #447a3c 54%, transparent 56%, 
				transparent 65%, #447a3c 67%, #447a3c 76%, transparent 78%) 
				15% 15%;
	background-size: 25% 25%;
}
.set:before {
	position: absolute;
	top: 12.5%; right: 12.5%; bottom: 12.5%; left: 12.5%;
	border-radius: 50%;
	transform: rotate(-45deg);
	box-shadow: 0 0 .5em gainsboro, inset 0 0 .5em gainsboro;
	background: radial-gradient(#850d0f, #701b14 39%, #9f693a 41%, #955e3a,  
					#af7665 45%, #b58d73 45%, #ddd7cb, #b7a09a 50%,
					rgba(255,255,255,0) 52%), 
				lemonchiffon 
				radial-gradient(#447a3c 10%, transparent 12%, 
				transparent 21%, #447a3c 23%, #447a3c 32%, transparent 34%, 
				transparent 43%, #447a3c 45%, #447a3c 54%, transparent 56%, 
				transparent 65%, #447a3c 67%, #447a3c 76%, transparent 78%) 
        20% 20%;
	background-size: 100% 100%, 33% 33%;
	content: '';
}
.set:after {
	position: absolute;
	top: 45.16%; right: 4.75%;
	width: 18.75%; height: 8.33%;
	border-radius: 0 33.33% 33.33% 0;
	box-shadow: .2em 0 .2em gainsboro, inset 0 0 .5em gainsboro;
	background: radial-gradient(dimgrey 19%, transparent 39%) 
				50% 140% no-repeat, 
				lemonchiffon 
				radial-gradient(#447a3c 10%, transparent 12%, 
				transparent 21%, #447a3c 23%, #447a3c 32%, transparent 34%, 
				transparent 43%, #447a3c 45%, #447a3c 54%, transparent 56%, 
				transparent 65%, #447a3c 67%, #447a3c 76%, transparent 78%) 
				0 20%;
	background-size: 500% 50%, 133.33% 300%;
	content: '';
}
            
          
!
999px

Console