.rotating-text {
  position: relative;
  display: block;
  width: 100%;
  height: 1.5em;
  overflow: hidden;
  /* ensure visibility even if parent has fade rules */
  opacity: 1 !important;
}

.rotating-text span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
  color: #ffffff;
  opacity: 0;
  white-space: nowrap;
  /* start hidden; animation will reveal */
  animation: rotateWords 33s infinite ease-out;
  -webkit-animation: rotateWords 33s infinite ease-out;
}

.rotating-text span:nth-child(1) {
  animation-delay: 0s;
}

.rotating-text span:nth-child(2) {
  animation-delay: 3s;
}

.rotating-text span:nth-child(3) {
  animation-delay: 6s;
}

.rotating-text span:nth-child(4) {
  animation-delay: 9s;
}

.rotating-text span:nth-child(5) {
  animation-delay: 12s;
}

.rotating-text span:nth-child(6) {
  animation-delay: 15s;
}

.rotating-text span:nth-child(7) {
  animation-delay: 18s;
}

.rotating-text span:nth-child(8) {
  animation-delay: 21s;
}

.rotating-text span:nth-child(9) {
  animation-delay: 24s;
}

.rotating-text span:nth-child(10) {
  animation-delay: 27s;
}

.rotating-text span:nth-child(11) {
  animation-delay: 30s;
}

@keyframes rotateWords {
  0% {
    opacity: 0;
    transform: scale(1.5);
  }

  5% {
    opacity: 1;
    transform: translateY(0);
  }

  8% {
    opacity: 1;
  }

  9% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .rotating-text {
    height: 3.6em;
    overflow: visible;
  }

  .rotating-text span {
    white-space: normal;
    line-height: 1.15;
  }
}

@media (max-width: 750px) {
  @keyframes rotateWords {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  5% {
    opacity: 1;
    transform: translateY(0);
  }

  8% {
    opacity: 1;
  }

  9% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}
}