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

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.

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

              
                body.aurora
	h1 
		| SynCap
		br
		i.small web-development #[br ] since 1998

              
            
!

CSS

              
                h1
	position absolute
	width 100%
	text-align center
	top 40vh
	color alpha(#fff, 0.7)
	font-family 'Trebuchet MS', Helvetica, sans-serif
	letter-spacing .7em
	font-size 20pt
	font-weight normal
	text-transform uppercase
	text-shadow: 
		1px 1px 5px 3px #ff0
.small
	text-transform none
	color alpha(#fff, .3)
	font-size .5em
	letter-spacing .3em
	line-height .5em

// *** Magic starts HERE
diameter = 35vmax

.aurora
	background #000
	position relative
	&:before,
	&:after
		content ''
		display block
		position absolute
		width 1px
		height 1px
		border-radius 100%
		opacity .18
		// transform rotate(55deg)
	&:before
		box-shadow 0 0 diameter diameter red
		animation:
			hue 5s 0s linear infinite,
			move1 10s 0s linear infinite
	&:after
		box-shadow 0 0 diameter diameter cyan
		animation:
			hue 10s 0s linear infinite,
			move2 20s 0s linear infinite
@keyframes hue
	0%
		filter hue-rotate(0deg)
	100%
		filter hue-rotate(360deg)
@keyframes move1
	0%
		top 0vh
		left 50vw
	25%
		left 0vw
	50%
		top 100vh
	75%
		left 100vw
	100%
		top 0vh
		left 50vw
@keyframes move2
	0%
		top 50vh
		left 100vw
	25%
		top 100vh
	50%
		left 0vw
	75%
		top 0vh
	100%
		top 50vh
		left 100vw

              
            
!

JS

              
                
              
            
!
999px

Console