matimh.eu

CSS Loader Generator

options

size

48px

one cycle

1s

add role="status" and a hidden "Loading…" text so screen readers know

ring - HTML

<div role="status" aria-label="Loading">
  <div class="loader"></div>
</div>

CSS

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #a855f733;
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: loader-spin 1s linear infinite;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}