Animated 3 half circles

Collective Health animated logo

by Thomas Orthbandt

HTML

<div class="container">
  <div class="content">
    <div class="ball1"></div>
    <div class="ball2"></div>
    <div class="ball3"></div>
  </div>
</div>

CSS

.container {
  width: 960px;
  overflow: hidden;
}

.content {
  width: 800px;
  padding-top: 50px;
}

.ball1 {
  background-color: rgba(0, 0, 0, 0);
  border: 10px solid rgba(37, 37, 37, 1);
  opacity: 1;
  border-right: 10px solid rgba(37, 37, 37, 0);
  border-bottom: 10px solid rgba(37, 37, 37, 0);
  border-radius: 50px;
  box-shadow: 0 0 0 #252525;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  transform: rotate(-45deg);
  -moz-animation: spin1 1.0s 1 linear;
  -webkit-animation: spin1 1.0s 1 linear;
  animation: spin1 1.0s 1 linear;
}

.ball2 {
  background-color: rgba(0, 0, 0, 0);
  border: 10px solid rgba(37, 37, 37, 1);
  opacity: 1;
  border-top: 10px solid rgba(37, 37, 37, 0);
  border-left: 10px solid rgba(37, 37, 37, 0);
  border-radius: 50px;
  box-shadow: 0 0 0 #252525;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  position: relative;
  top: -80px;
  transform: rotate(-45deg);
  -moz-animation: spin2 1.0s 1 linear;
  -webkit-animation: spin2 1.0s 1 linear;
  animation: spin2 1.0s 1 linear;
}

.ball3 {
  background-color: rgba(0, 0, 0, 0);
  border: 10px solid rgba(37, 37, 37, 1);
  opacity: 1;
  border-right: 10px solid rgba(37, 37, 37, 0);
  border-bottom: 10px solid rgba(37, 37, 37, 0);
  border-radius: 50px;
  box-shadow: 0 0 0 #252525;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  position: relative;
  top: -140px;
  transform: rotate(-45deg);
  -moz-animation: spin3 1.0s 1 linear;
  -webkit-animation: spin3 1.0s 1 linear;
  animation: spin3 1.0s 1 linear;
}

@-webkit-keyframes spin1 {
  0% {
    -webkit-transform: rotate(0deg);
  }
  33% {
    -webkit-transform: rotate(-45deg);
  }
  66% {
    -webkit-transform: rotate(-90deg);
  }
  100% {
    -webkit-transform: rotate(-360deg);
  }
  ;
}

@-webkit-keyframes spin2 {
  0% {
    -webkit-transform: rotate(0deg);
  }
  33% {
    -webkit-transform: rotate(45deg);
  }
  66% {
    -webkit-transform: rotate(90deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
 ...