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.


                a.container[href='' target='_blank']
		- for i in (1..5) by @rileyjshaw



                $NUM_BOXES: 5
$SPEED: 2.4s
$COLOR: rgb(225, 203, 57)

html, body
	height: 100%
	width: 100%

	display: flex
	justify-content: center
	align-items: center
	margin: 0
	font-family: 'Roboto', sans-serif
	text-align: right
	background: #000

	text-decoration: none

	margin: 0
	padding: 0
	list-style: none

	position: relative
	display: flex
	justify-content: space-around
	width: 300px
	height: 60px
	padding: 0 12px
	overflow: hidden
	background: $COLOR

	width: 48px
	height: 48px
	border-radius: 4px
	background: #181818
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.6)

	@for $n from 1 through $NUM_BOXES
			animation: fall $SPEED $n/$NUM_BOXES*$SPEED - $SPEED ease-in infinite

	display: inline-block
	padding-bottom: 1px
	border-bottom: 1px solid desaturate($COLOR, 20%)
	font-size: 10px
	text-transform: uppercase
	color: $COLOR

	opacity: 0
	animation: fadeIn 0.4s 2s linear forwards

@keyframes fall
		transform: translate3d(0, -150px, 0) rotate(0deg)
		transform: translate3d(0, 150px, 0) rotate(360deg)

@keyframes fadeIn
		opacity: 1