<body>
  <div class="spinner">
  </div>
</body>
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: grid;
  place-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #ebebeb;
  border-top: 4px solid #007dd7;
  animation: 2s spin linear infinite;
  /*
  animation-duration: 2s;
  animation-name: spin;
  animation-timing-function: linear;
  animation-iteration-count: infinite; 
  */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.