LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
1
2
3
4
CSS
/** Cosmetics. Delete this */
html, body {
  position: relative;
  height: 100%;
}

body {
  background-color: #23272b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-line-pack: center;
      align-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

/** End of Cosmetics */
.wheels-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  display: block;
}

.wheel {
  display: inline-block;
  vertical-align: middle;
  margin-right: 30px;
}

.wheels-container {
  height: 120px;
}

.wheel {
  position: relative;
  height: 120px;
  width: 120px;
}

.wrapper .overlay {
  position: absolute;
  width: 96px;
  height: 96px;
  display: table;
  background-color: #23272b;
  border-radius: 50%;
  margin-left: 12px;
  margin-top: 12px;
  text-align: center;
  z-index: 20;
}
.wrapper .overlay .value-container {
  display: table-cell;
  vertical-align: middle;
  border-radius: 50%;
}
.wrapper .overlay .value {
  font-size: 3.8em;
  line-height: 1em;
  color: white;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

.wrapper {
  position: absolute;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  float: right;
  background: lightgray;
}
.wrapper .circle-wrapper {
  position: absolute;
  width: 120px;
  height: 120px;
  clip: rect(0px, 120px, 120px, 60px);
  /* Hide half of the progress bar */
}

/* Set the sizes of the elements that make up the progress bar */
.circle {
  width: 96px;
  height: 96px;
  border: 12px solid #60A7BF;
  border-radius: 50%;
  position: absolute;
  clip: rect(0px, 60px, 120px, 0px);
  z-index: 10;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

/**
 * Using the data attributes for the animation selectors.
 * Base settings for all animated elements
 */
[data-anim~=base] {
  -webkit-animation-iteration-count: 1;
          animation-iteration-count: 1;
  /* Only run once */
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
  /* Hold the last keyframe */
  -webkit-animation-timing-function: linear;
          animation-timing-function: linear;
  /* Linear animation */
}

[data-anim~=wrapper] {
  -webkit-animation-duration: 0.01s;
          animation-duration: 0.01s;
  /* Complete keyframes asap */
  -webkit-animation-name: close-wrapper;
          animation-name: close-wrapper;
  /* Keyframes name */
  -webkit-animation-timing-function: ease-out;
          animation-timing-function: ease-out;
}

/* 0deg */
@-webkit-keyframes deg0 {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}
@keyframes deg0 {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}
/* 90deg */
@-webkit-keyframes deg90 {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
  }
}
@keyframes deg90 {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
  }
}
/* 180deg */
@-webkit-keyframes deg180 {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
  }
}
@keyframes deg180 {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
  }
}
/* 270deg */
@-webkit-keyframes deg270 {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(270deg);
            transform: rotate(270deg);
  }
}
@keyframes deg270 {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(270deg);
            transform: rotate(270deg);
  }
}
/* 360deg */
@-webkit-keyframes deg360 {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes deg360 {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.value {
  /* 0deg  */
  /* 90deg */
  /* 180deg */
  /* 270deg */
  /* 360deg */
}
.value0 [data-anim~=wrapper] {
  -webkit-animation: none;
          animation: none;
}
.value0 .circle[data-anim~=left] {
  -webkit-animation-name: deg0;
          animation-name: deg0;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}
.value0 .circle[data-anim~=right] {
  -webkit-animation-name: deg0;
          animation-name: deg0;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}
.value1 [data-anim~=wrapper] {
  -webkit-animation: none;
          animation: none;
}
.value1 .circle[data-anim~=left] {
  -webkit-animation-name: deg90;
          animation-name: deg90;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}
.value1 .circle[data-anim~=right] {
  -webkit-animation-name: deg90;
          animation-name: deg90;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}
.value2 [data-anim~=wrapper] {
  -webkit-animation: none;
          animation: none;
}
.value2 .circle[data-anim~=left] {
  -webkit-animation-name: deg180;
          animation-name: deg180;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}
.value2 .circle[data-anim~=right] {
  -webkit-animation-name: deg180;
          animation-name: deg180;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}
.value3 [data-anim~=wrapper] {
  -webkit-animation-delay: 1.5s;
          animation-delay: 1.5s;
}
.value3 .circle[data-anim~=left] {
  -webkit-animation-name: deg180;
          animation-name: deg180;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}
.value3 .circle[data-anim~=right] {
  -webkit-animation-name: deg270;
          animation-name: deg270;
  -webkit-animation-duration: 2.25s;
          animation-duration: 2.25s;
}
.value4 [data-anim~=wrapper] {
  -webkit-animation-delay: 1.5s;
          animation-delay: 1.5s;
}
.value4 .circle[data-anim~=left] {
  -webkit-animation-name: deg180;
          animation-name: deg180;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}
.value4 .circle[data-anim~=right] {
  -webkit-animation-name: deg360;
          animation-name: deg360;
  -webkit-animation-duration: 3s;
          animation-duration: 3s;
}

@-webkit-keyframes close-wrapper {
  to {
    clip: rect(0px, 120px, 120px, 0);
  }
}

@keyframes close-wrapper {
  to {
    clip: rect(0px, 120px, 120px, 0);
  }
}
JS
/* Pure emptiness */
Term
Sat, 01/13/2018 - 07:27

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv