/*
    Creates three dots that animate and slide from left to right. then repeat
    dont put anything else in the element
    USAGE
    <div class="animation-dot-slide active">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
    </div>

*/
.animation-dot-slide .dot {
  width: 5px;
  height: 5px;
  background: #333333;
  border-radius: 5px;
  display: inline-block;
  margin: 5px 0;
  position: relative;
  top: 2px;
  left: -2px;
}
.animation-dot-slide.active .dot:nth-child(3) {
  -webkit-animation: dot-slide 4s 300ms infinite ease-in-out;
  -moz-animation: dot-slide 4s 300ms infinite ease-in-out;
  -o-animation: dot-slide 4s 300ms infinite ease-in-out;
  animation: dot-slide 4s 300ms infinite ease-in-out;
}
.animation-dot-slide.active .dot:nth-child(2) {
  -webkit-animation: dot-slide 4s 500ms infinite ease-in-out;
  -moz-animation: dot-slide 4s 500ms infinite ease-in-out;
  -o-animation: dot-slide 4s 500ms infinite ease-in-out;
  animation: dot-slide 4s 500ms infinite ease-in-out;
}
.animation-dot-slide.active .dot:nth-child(1) {
  -webkit-animation: dot-slide 4s 700ms infinite ease-in-out;
  -moz-animation: dot-slide 4s 700ms infinite ease-in-out;
  -o-animation: dot-slide 4s 700ms infinite ease-in-out;
  animation: dot-slide 4s 700ms infinite ease-in-out;
}
@-ms-keyframes dot-slide {
  0% {
    opacity: 0;
    -moz-transform: translateX(-50px);
    -ms-transform: translateX(-50px);
    -o-transform: translateX(-50px);
    -webkit-transform: translateX(-50px);
    transform: translateX(-50px);
  }
  33% {
    opacity: 1;
    -moz-transform: translateX(0px);
    -ms-transform: translateX(0px);
    -o-transform: translateX(0px);
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }
  66% {
    opacity: 1;
    -moz-transform: translateX(0px);
    -ms-transform: translateX(0px);
    -o-transform: translateX(0px);
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }
  100% {
    opacity: 0;
    -moz-transform: translateX(50px);
    -ms-transform: translateX(50px);
    -o-transform: translateX(50px);
    -webkit-transform: translateX(50px);
    transform: translateX(50px);
  }
}
@keyframes dot-slide {
  0% {
    opacity: 0;
    -moz-transform: translateX(-50px);
    -ms-transform: translateX(-50px);
    -o-transform: translateX(-50px);
    -webkit-transform: translateX(-50px);
    transform: translateX(-50px);
  }
  33% {
    opacity: 1;
    -moz-transform: translateX(0px);
    -ms-transform: translateX(0px);
    -o-transform: translateX(0px);
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }
  66% {
    opacity: 1;
    -moz-transform: translateX(0px);
    -ms-transform: translateX(0px);
    -o-transform: translateX(0px);
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }
  100% {
    opacity: 0;
    -moz-transform: translateX(50px);
    -ms-transform: translateX(50px);
    -o-transform: translateX(50px);
    -webkit-transform: translateX(50px);
    transform: translateX(50px);
  }
}
/*
    Makes an element spin in circles
    <my-element class="animation-spin active"></my-element>
*/
.animation-spin.active {
  -moz-animation: spin 4s linear infinite;
  -o-animation: spin 4s linear infinite;
  -webkit-animation: spin 4s linear infinite;
  animation: spin 4s linear infinite;
}
@-ms-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spin {
  from {
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
/*
    animation-pulsate - makes element appear to pulsate
    <my-element class="animation-pulsate active"></my-element>
*/
.animation-pulsate.active {
  -moz-animation: pulsate 2s 300ms infinite ease-in-out;
  -o-animation: pulsate 2s 300ms infinite ease-in-out;
  -webkit-animation: pulsate 2s 300ms infinite ease-in-out;
  animation: pulsate 2s 300ms infinite ease-in-out;
}
@-ms-keyframes pulsate {
  0% {
    opacity: 0.8;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.8;
    transform: scale(0.9);
  }
}
@keyframes pulsate {
  0% {
    opacity: 0.8;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.8;
    transform: scale(0.95);
  }
}
/*
    animation-check-mark: draws a check mark on the screen as if it were being written

    <i class="animation-check-mark-wrapper active">
        <svg style="width: 10px; height: 10px; overflow: visible;" viewBox="0 -15 60 55">
            <path class="animation-check-mark" d="M-15,10 15,50 l95,-70" />
        </svg>
    </i>
*/
.animation-check-mark {
  fill: none;
  stroke: #333333;
  stroke-width: 30px;
  stroke-dasharray: 180;
  stroke-dashoffset: 0;
  -moz-transform: scale(0.9);
  -ms-transform: scale(0.9);
  -o-transform: scale(0.9);
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
}
.animation-check-mark-wrapper.active .animation-check-mark {
  stroke: #ffffff;
  stroke-dashoffset: 180;
  -webkit-animation: check-mark 10s 500ms infinite ease;
  -moz-animation: check-mark 10s 500ms infinite ease;
  -o-animation: check-mark 10s 500ms infinite ease;
  animation: check-mark 10s 500ms infinite ease;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .animation-check-mark-wrapper.active .animation-check-mark {
    stroke-dashoffset: 0;
  }
}
@-ms-keyframes check-mark {
  0% {
    stroke-dashoffset: 180;
  }
  10% {
    stroke-dashoffset: 180;
  }
  20% {
    stroke-dashoffset: 0;
  }
  99% {
    stroke-dashoffset: 0;
  }
}
@keyframes check-mark {
  0% {
    stroke-dashoffset: 180;
  }
  10% {
    stroke-dashoffset: 180;
  }
  20% {
    stroke-dashoffset: 0;
  }
  99% {
    stroke-dashoffset: 0;
  }
}
