<div class="loading-spinner"></div>
.loading-spinner {
  display: inline-block;
  width: 100px;
  height: 100px;
  border: 10px solid rgba(230, 230, 230, .3);
  border-radius: 50%;
  border-top-color: #3dc9e5;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
// recreating https://codepen.io/scottkellum/pen/tzjCK
// just to learn how he did it
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.