Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

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.


		p We love donuts.
		- for (var i = 0; i < 3; ++i) {
		- }


                @import url(",800")
	margin 0
	background white
	font-family 'Open Sans'
	position relative
	width 100vw
	height 100vh
	background #ff5f5f
	overflow hidden
		height 100%
		text-align center
		z-index 2
		color #460b0b
		font-size 80px 
		font-weight 900
		position absolute
		display flex
		align-items center
		justify-content center
		left 0
		right 0
		width 100%
		bottom 160px
		right 130px
		position relative
		display grid
		grid-template 1fr 1fr 1fr 1fr / 1fr 1fr 1fr 1fr 1fr 1fr
	@keyframes float
			margin-top 0
			margin-top 50px
			margin-top 0
	animation-name float
	animation-duration 5s
	animation-iteration-count infinite
	animation-timing-function ease-in-out
	margin 0 auto
	width 300px
	height 336px
	background url('') center 100% / 100% no-repeat
	for num in (1..12)
			animation-delay num*0.12s	
		animation-duration 4s
		background url('') center 100% / 100% no-repeat