title: Rainbow text animation using only CSS
body: <p>I got inspired by this Rainbow Text Animation <a href="https://codemyui.com/rainbow-text-animation/" rel="noreferrer">rainbow-text-animation</a>, and I would like to use only CSS to make this happen instead of all that complicated SCSS coding.</p>
  
  <p>I got what I like so far and now I just want to make it go from left to right <strong>AND</strong> having multiple colors in one entire line <strong>instead of one color at a time.</strong></p>
  
  <p><strong><em>Run the code snippet to see what I'm talking about.</em></strong></p>
  
  <p><strong>So as you can see, I want as many colors I want in one line and not one color in the entire line (one at a time).</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#shadowBox {
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.2);
    /* Black w/opacity/see-through */
    border: 3px solid;
  }
  
  .rainbow {
    text-align: center;
    text-decoration: underline;
    font-size: 32px;
    font-family: monospace;
    letter-spacing: 5px;
    animation: colorRotate 6s linear 0s infinite;
  }
  
  @keyframes colorRotate {
    from {
      color: #6666ff;
    }
    10% {
      color: #0099ff;
    }
    50% {
      color: #00ff00;
    }
    75% {
      color: #ff3399;
    }
    100% {
      color: #6666ff;
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="shadowBox"&gt;
  
    &lt;h3 class="rainbow"&gt;COMING SOON&lt;/h3&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>