<div class="loader"></div>
html,
body {
  margin: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  background: aliceblue;
}
.loader {
  width: 120px;
  height: 120px;
  background: conic-gradient(
    from 45deg,
    #2196f3 25%,
    #f44336 0 50%,
    #4caf50 0 75%,
    #ffc107 0
  );
  -webkit-mask: radial-gradient(50% 50%, #000 96%, #0000) left/35% 35% no-repeat;
  animation: load 2s infinite;
}
@keyframes load {
  25% {
    -webkit-mask-position: top;
  }
  50% {
    -webkit-mask-position: right;
  }
  75% {
    -webkit-mask-position: bottom;
  }
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.