/* change font size to change size */

.loader {
  font-size: 1.25em;
    position: relative;
    width: 4em;
    height: 1em;
    margin: 100px auto;
    transform: rotate(90deg);
}

.dot {
  width: 0.7em;
    height: 0.7em;
    border-radius: 0.5em;
    background: #d30d2b;
    position: absolute;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
}

.dot1, .dot2 {
  left: 0;
}

.dot3 { left: 1.5em; }

.dot4 { left: 3em; }

@keyframes reveal {
  from { transform: scale(0.001); }
  to { transform: scale(1); }
}

@keyframes slide {
  to { transform: translateX(1.5em) }
}


.dot1 {
  animation-name: reveal;
}

.dot2, .dot3 {
  animation-name: slide;
}

.dot4 {
  animation-name: reveal;
  animation-direction: reverse; /* thx @HugoGiraudel */
}