123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm 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. We'll also process your JavaScript with Babel.

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

Code Indentation

     

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.

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.

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

            
          
!
            
              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

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console