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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


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.


                - var text = "Loading...";
- var rings = 2;
- var ringSectors = 30;

	- for (let r = 0; r < rings; ++r) {
			- for (let s = 0; s < ringSectors; ++s) {
				.preloader__sector=text[s] || ""
			- }
	- }


                $ringRadius: 7rem
$ringSectors: 30
$animDuration: 8s

	border: 0
	box-sizing: border-box
	margin: 0
	padding: 0

	font-size: calc(16px + (24 - 16)*(100vw - 320px)/ (1280 - 320))

body, .preloader
	display: flex

	background: #000
	color: #3df1f1
	font: 1em Dosis, sans-serif
	height: 100vh
	line-height: 1.5
	perspective: 40em

	animation: tiltSpin $animDuration linear infinite
	flex-direction: column
	justify-content: center
	align-items: center
	margin: auto
	width: 17em
	height: 17em
	&, &__ring
		transform-style: preserve-3d
			name: spin
			duration: $animDuration/2
			timing-function: inherit
			iteration-count: inherit
		font-size: 2em
		position: relative
		height: 3rem
		width: 1.5rem
			animation-direction: reverse
		font-weight: 600
		position: absolute
		top: 0
		left: 0
		text-align: center
		text-transform: uppercase
		transform: translateZ($ringRadius)
		&, &:empty:before
			display: inline-block
			width: 100%
			height: 100%
			background: linear-gradient(transparent 45%,currentColor 45% 55%,transparent 55%)
			content: ""
		@for $s from 2 through $ringSectors
				$angle: (360deg / $ringSectors) * ($s - 1)
				transform: rotateY($angle) translateZ($ringRadius)

/* Animations */
@keyframes tiltSpin
		transform: rotateY(0) rotateX(30deg)
		transform: rotateY(1turn) rotateX(30deg)

@keyframes spin
		transform: rotateY(0)
		transform: rotateY(1turn)