<div class="container">
  <div class="wrapper">
    <div class="circle"></div>
  </div>
</div>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.wrapper {
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle {
  width: 50px;
  height: 50px;
  position: relative;
  transform: rotate(-45deg);
}

.circle:before,
.circle:after {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  border-radius: 0 100% 0 0;
  transform-origin: 0 100%;
}
.circle:before {
  box-shadow: 0 -4px 0 0 #00a6ed;
  animation: rotate1 1s infinite linear;
}
.circle:after {
  box-shadow: 4px 0 0 0 #f6511d;
  animation: rotate2 1s infinite linear;
}

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

@keyframes rotate2 {
  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.