<main class="wrapper">
  <section class="container">
    <div class="loader"></div>
  </section>
</main>
.loader {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: solid 4px;
  border-color: #000000 #00000010 #00000010;
  position: relative;
  animation-name: spin;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body {
  background-color: #f9f9f7;
}

.wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.container {
  margin: 1.5%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30%;
  min-width: 250px;
  min-height: 200px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 16px 12px -8px #00000020;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.