<div class="m">
  <div class="m1 m0"><b></b></div>
  <div class="m1 m2"></div>
  <div class="m1 m3"></div>
  <div class="m1 m4"></div>
</div>
.m {
  width: 400px;
  height: 400px;
}
.m1 {
  position: relative;
  z-index: 4;
  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;
  position: relative;
  z-index: 2;
  top: 5px;
  left: -45px;
  animation: glide 6s linear infinite alternate;
}
@keyframes glide {
  25% {
    transform: translate(300px, 0);
  }
  50% {
    transform: translate(155px, 273px);
  }
  75% {
    transform: translate(455px, 273px);
  }
  100% {
    transform: translate(318px, 538px);
  }
}

.m2 {
  transform: rotate(58deg);
  transform-origin: 42% 160%;
  z-index: 3;
}
.m3 {
  transform-origin: 80% -173%;
  z-index: 2;
}
.m4 {
  transform: rotate(58deg);
  transform-origin: 156% 340%;
  z-index: 1;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.