<div class="loader"></div>
.loader {
  width: 120px;        /* the size */
  padding: 15px;       /* the border thickness */
  background: #07e8d6; /* the color */
  aspect-ratio: 1;
  border-radius: 50%;
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  box-sizing: border-box;
  animation: load 1s linear infinite;

@keyframes load {
  to{transform: rotate(1turn)}

body {
  margin: 0; 
  display: grid;
  min-height: 100vh;
  place-content: center;
  background: linear-gradient(45deg,#ccc,#fff);
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.