<div class="m">
  <div class="m1"><b></b></div>
</div>
.m {
  width: 400px;
  height: 400px;
}
.m1 {
  position: relative;
  margin: auto;
  width: calc(100% - 100px);
  height: 100px;
  background: #000;
  transform: rotate(-60deg);
  transform-origin: 86% 200%;
}
.m1:before,
.m1:after {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 100px;
  height: 100px;
  background: #000;
  border-radius: 50%;
}
.m1:after {
  left: auto;
  right: -50px;
}
.m1 b {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  display: block;
  z-index: 2;
  position: relative;
  top: 5px;
  left: -45px;
  animation: glide 3s linear infinite alternate;
}
@keyframes glide {
  100% {
    transform: translateX(300px);
  }
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.