hummingbird-me/hummingbird

View on GitHub
app/assets/stylesheets/partials/loading-indicator.css.scss

Summary

Maintainability
Test Coverage
.loading-indicator {
  margin: 100px auto 10px;
  width: 70px;
  text-align: center;
}

.small-loader {
  .loading-indicator {
    margin: 10px auto;
  }
}

.light .loading-indicator > div {
  background-color: $lighterNavy;
}

.loading-indicator > div {
  width: 18px;
  height: 18px;
  background-color: $lightNavy;

  border-radius: 100%;
  display: inline-block;
  animation: bouncedelay 1.4s infinite ease-in-out;
  /* Prevent first frame from flickering when animation starts */
  animation-fill-mode: both;
}

.loading-indicator .bounce1 {
  animation-delay: -0.32s;
}

.loading-indicator .bounce2 {
  animation-delay: -0.16s;
}

@keyframes bouncedelay {
  0%, 80%, 100% {
    transform: scale(0.0);
  } 40% {
    transform: scale(1.0);
  }
}