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="loading-animation loading-animation--layout">
  <div class="bounce"></div>
</div>
<br>
<div class="loading-animation loading-animation--small loading-animation--layout">
  <div class="bounce"></div>
</div>

<div class="background--dark">
  <div class="loading-animation loading-animation--inverted loading-animation--layout">
  <div class="bounce"></div>
</div>
<br>
<div class="loading-animation loading-animation--inverted loading-animation--small loading-animation--layout">
  <div class="bounce"></div>
</div>
</div>
            
          
!

CSS

            
              // Re-usable LESS project code.
@width-bounce-dot: 1em;

.loading-animation {
	white-space: nowrap;

	.bounce,
	&:before,
	&:after {
		content: '';
		background-color: #72777d;
		display: inline-block;
		width: @width-bounce-dot;
		height: @width-bounce-dot;
		border-radius: 100%;
		-webkit-animation: bounce-delay 1600ms infinite ease-in-out both;
		animation: bounce-delay 1600ms infinite ease-in-out both;
		-webkit-animation-delay: -160ms;
		animation-delay: -160ms;
  }

	&:before {
		margin-right: @width-bounce-dot / 4;
		-webkit-animation-delay: -330ms;
		animation-delay: -330ms;
	}

	&:after {
		margin-left: @width-bounce-dot / 4;
		-webkit-animation-delay: 0ms;
		animation-delay: 0ms;
	}
}

// Loading animation small
.loading-animation--small .bounce,
.loading-animation--small:before,
.loading-animation--small:after {
	width: @width-bounce-dot / 1.33;
	height: @width-bounce-dot / 1.33;
}

// Loading animation inverted
.loading-animation--inverted .bounce,
.loading-animation--inverted:before,
.loading-animation--inverted:after {
	background-color: #c8ccd1;
}

// Animations
@-webkit-keyframes bounce-delay {
	0%,
	50%, // Equals 800ms.
	100% {
		-webkit-transform: scale( 0.625 );
	}
	20% { // Equals 320ms.
		opacity: 0.87;
		-webkit-transform: scale( 1 );
	}
}

@-moz-keyframes bounce-delay {
	0%,
	50%,
	100% {
		-moz-transform: scale( 0.625 );
	}
	20% {
		opacity: 0.87;
		-moz-transform: scale( 1 );
	}
}

@keyframes bounce-delay {
	0%,
	50%,
	100% {
		-ms-transform: scale( 0.625 );
		transform: scale( 0.625 );
	}
	20% {
		opacity: 0.87;
		-ms-transform: scale( 1 );
		transform: scale( 1 );
	}
}


// Only for layout purposes
body {
	background-color: #fff;
	margin: 0;
	padding: 0;
}

br {
	clear: both;
}

.background--dark {
	background-color: black;
	position: absolute;
	top: 50%;
	width: 100%;
	height: 50%;
}

.loading-animation--layout {
	display: block;
	width: @width-bounce-dot * 4;
	margin: 32px auto 0;
}

.loading-animation--layout.loading-animation--small {
	max-width: 46px;
}

            
          
!

JS

            
              
            
          
!
999px

Console