A loading spinner

A circle with one colored edge, rotating.

CSS · A loading spinnerBeginner
.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
animationkeyframesspinnerloading