Skip to content

Midnight Track

Spinner · Classic · dark, minimal

Customize

HTML

<div class="utw-loader-midnight-track" role="status">
  <span class="utw-loader-midnight-track__sr">Loading…</span>
</div>

CSS

/* Spinner loader (Classic) */
.utw-loader-midnight-track {
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #334155;
  border-top-color: #f8fafc;
  border-radius: 50%;
  animation: utw-loader-midnight-track-spin 0.9s linear infinite;
}

.utw-loader-midnight-track *,
.utw-loader-midnight-track *::before,
.utw-loader-midnight-track *::after {
  box-sizing: border-box;
}

.utw-loader-midnight-track__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes utw-loader-midnight-track-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes utw-loader-midnight-track-calm {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .utw-loader-midnight-track *,
  .utw-loader-midnight-track *::before,
  .utw-loader-midnight-track *::after {
    animation: none !important;
  }
  .utw-loader-midnight-track {
    animation: utw-loader-midnight-track-calm 2s ease-in-out infinite alternate !important;
  }
}

Related loaders