.loading {
  position: relative;
}

.background,
.foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.background {
  z-index: 1;
  opacity: 0.3;
}

.foreground {
  z-index: 2;
  border-color: currentColor transparent transparent transparent;
  //animation: loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  animation: loading .5s linear infinite;
}

@keyframes loading {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
