Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                #logo
	.c1
	.c2
	.d
	.h
              
            
!

CSS

              
                @import compass

html
	height: 100%
	+background(#F2E1AC)
	position: relative

#logo
	position: absolute
	top: 50%
	margin-top: -100px
	left: 50%
	margin-left: -150px
	+inline-block
	width: 300px	
	height: 200px

	.c1, .c2
		position: absolute
		top: 0
		height: 200px
		width: 200px
		+border-radius(100px)
		content: ''

	.c1
		left: 0
		+background(rgba(#63A69F, 0.5))

	.c2
		right: 0
		+background(rgba(#F2594B, 0.5))

	.d, .h, .h:before, .h:after
		position: absolute
		top: 50%
		z-index: 1
		+background(rgba(#fff, 0.75))


	.d
		left: 50%
		margin-left: -110px
		margin-top: -60px
		height: 120px
		width: 100px
		+border-radius(20px 60px 60px 20px)

	.h
		right: 50%
		margin-right: -110px
		margin-top: -15px
		height: 30px
		width: 100px
		+border-radius(20px)

		&:before, &:after
			margin-top: -60px
			width: 30px
			height: 120px
			+border-radius(20px)
			content: ''

		&:before
			left: 0

		&:after
			right: 0



@keyframes left-circle
	0%
		+opacity(0)
		left: 100%
	
	100%
		+opacity(1)
		left: 0

@keyframes right-circle
	0%
		+opacity(0)
		right: 100%
	
	100%
		+opacity(1)
		right: 0

@keyframes letters
	0%
		+opacity(0)

	50%
		+opacity(0)

	100%
		+opacity(1)


#logo
	.c1, .c2
		animation-duration: 2s
		animation-timing-function: ease

	.c1
		animation-name: left-circle

	.c2
		animation-name: right-circle

	.d, .h
		animation-name: letters
		animation-duration: 2s
		animation-timing-function: ease


		
	

		
              
            
!

JS

              
                
              
            
!
999px

Console