LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
.container
  - for (var i = 0; i < 9; i++) {
    div(class='circle-'+i)
      div(class='inner-'+i)
  - }
CSS
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #828282;
}

.container {
  width: 400px;
  height: 400px;
  position: relative;
}

div[class^='circle-'] {
  border-radius: 50%;
  box-sizing: border-box;
  background-color: #828282;
  position: relative;
  padding: 5px;
  position: absolute;
}

.inner-1 {
  border: 5px solid transparent;
  border-top-color: #454346;
  border-bottom-color: #c2c1c2;
  border-radius: 50%;
  box-sizing: border-radius;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.circle-1 {
  position: relative;
  border: 10px solid transparent;
  border-top-color: black;
  border-bottom-color: white;
  animation: rotate 2.7777777778s linear infinite;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  transform-origin: 50%;
}

.inner-2 {
  border: 5px solid transparent;
  border-top-color: #c2c1c2;
  border-bottom-color: #454346;
  border-radius: 50%;
  box-sizing: border-radius;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.circle-2 {
  position: relative;
  border: 10px solid transparent;
  border-top-color: white;
  border-bottom-color: black;
  animation: rotate 3.125s linear infinite;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  transform-origin: 50%;
}

.inner-3 {
  border: 5px solid transparent;
  border-top-color: #454346;
  border-bottom-color: #c2c1c2;
  border-radius: 50%;
  box-sizing: border-radius;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.circle-3 {
  position: relative;
  border: 10px solid transparent;
  border-top-color: black;
  border-bottom-color: white;
  animation: rotate 3.5714285714s linear infinite;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  transform-origin: 50%;
}

.inner-4 {
  border: 5px solid transparent;
  border-top-color: #c2c1c2;
  border-bottom-color: #454346;
  border-radius: 50%;
  box-sizing: border-radius;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.circle-4 {
  position: relative;
  border: 10px solid transparent;
  border-top-color: white;
  border-bottom-color: black;
  animation: rotate 4.1666666667s linear infinite;
  top: 60px;
  left: 60px;
  right: 60px;
  bottom: 60px;
  transform-origin: 50%;
}

.inner-5 {
  border: 5px solid transparent;
  border-top-color: #454346;
  border-bottom-color: #c2c1c2;
  border-radius: 50%;
  box-sizing: border-radius;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.circle-5 {
  position: relative;
  border: 10px solid transparent;
  border-top-color: black;
  border-bottom-color: white;
  animation: rotate 5s linear infinite;
  top: 80px;
  left: 80px;
  right: 80px;
  bottom: 80px;
  transform-origin: 50%;
}

.inner-6 {
  border: 5px solid transparent;
  border-top-color: #c2c1c2;
  border-bottom-color: #454346;
  border-radius: 50%;
  box-sizing: border-radius;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.circle-6 {
  position: relative;
  border: 10px solid transparent;
  border-top-color: white;
  border-bottom-color: black;
  animation: rotate 6.25s linear infinite;
  top: 100px;
  left: 100px;
  right: 100px;
  bottom: 100px;
  transform-origin: 50%;
}

.inner-7 {
  border: 5px solid transparent;
  border-top-color: #454346;
  border-bottom-color: #c2c1c2;
  border-radius: 50%;
  box-sizing: border-radius;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.circle-7 {
  position: relative;
  border: 10px solid transparent;
  border-top-color: black;
  border-bottom-color: white;
  animation: rotate 8.3333333333s linear infinite;
  top: 120px;
  left: 120px;
  right: 120px;
  bottom: 120px;
  transform-origin: 50%;
}

.inner-8 {
  border: 5px solid transparent;
  border-top-color: #c2c1c2;
  border-bottom-color: #454346;
  border-radius: 50%;
  box-sizing: border-radius;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.circle-8 {
  position: relative;
  border: 10px solid transparent;
  border-top-color: white;
  border-bottom-color: black;
  animation: rotate 12.5s linear infinite;
  top: 140px;
  left: 140px;
  right: 140px;
  bottom: 140px;
  transform-origin: 50%;
}

.inner-9 {
  border: 5px solid transparent;
  border-top-color: #454346;
  border-bottom-color: #c2c1c2;
  border-radius: 50%;
  box-sizing: border-radius;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.circle-9 {
  position: relative;
  border: 10px solid transparent;
  border-top-color: black;
  border-bottom-color: white;
  animation: rotate 25s linear infinite;
  top: 160px;
  left: 160px;
  right: 160px;
  bottom: 160px;
  transform-origin: 50%;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
Term
Wed, 12/27/2017 - 07:03

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv