Pure CSS Loader Generator

This CSS generator helps you to create simple CSS spinners. You can choose between four different types of CSS spinners and adjust the settings.

Afterward, you can easily copy the CSS code for usage on your website.

CountSizeGapAnimation duration
.loader {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(#0000, #1E4D92) content-box;
  mask: repeating-conic-gradient(
    #0000 0deg,
    #000 1deg calc(360deg/10 - 10deg - 1deg),
    #0000 calc(360deg/10 - 10deg) calc(360deg/10)
  ), radial-gradient(
    farthest-side,
    #0000 calc(98% - 10px),
    #000 calc(100% - 10px)
  );
  mask-composite: intersect;
  -webkit-mask-composite: destination-in;
  animation: spin 1000ms infinite steps(10);
}
@keyframes spin { to { transform: rotate(1turn) } }

You might also like