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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              <div class="spinner-container">
	<div class="spinner"></div>
	<div class="spinner"></div>
	<div class="spinner"></div>
	<div class="spinner"></div>
	<div class="spinner"></div>
</div>

            
          
!

CSS

            
              // Variables ========================
$blue: #00298C
$yellow: #FFEF08
$black: #000000
$green: #087B39
$red: #DE1818

html
	height: 100%

body
	display: flex
	flex:
		direction: column
	align:
		items: center
	justify-content: center
	height: 100%

.spinner-container
	display: flex
	flex:
		direction: row
	
.spinner
	flex:
		grow: 0
		shrink: 0
	width: 80px
	height: 80px
	margin-left: -36px
	background: none
	border-radius: 50%
	border: 6px solid currentColor
	box-sizing: border-box
	animation:
		name: spin
		duration: 1.2s
		// direction: alternate
		fill-mode: backwards
		iteration-count: infinite
		timing-function: linear

	&:first-child
		margin-left: 0
		color: transparentize($blue,0.8)
		border-top-color: $blue

	&:nth-child(2)
		color: transparentize($yellow,0.8)
		border-top-color: $yellow		
		// animation:
		// 	delay: 0.3s

	&:nth-child(3)
		color: transparentize($black,0.8)
		border-top-color: $black
		// animation:
		// 	delay: 0.6s	

	&:nth-child(4)
		color: transparentize($green,0.8)
		border-top-color: $green
		// animation:
		// 	delay: 0.9s	

	&:nth-child(5)
		color: transparentize($red,0.8)
		border-top-color: $red	
		// animation:
		// 	delay: 1.2s	

	&:nth-child(2n)
		margin-top: 40px

@keyframes spin
	0%
		transform: rotate(0)
	100%
		transform: rotate(360deg)
            
          
!

JS

            
              $( document ).ready(function() {
	
	// Loop through each nav item
	$('.spinner-container').children('.spinner').each(function(index){
			
			// Turn the index value into a reasonable animation delay
			var delay = index*0.3;
			
			// Apply the animation delay
			// $(this).css("animation-delay", delay + "s")	

	});
});
            
          
!
999px

Console