title: CSS infinite ripple animation
body: <p>I want to do infinite ripple animation, but it will become unnatural..  </p>
  
  <p><a href="https://i.stack.imgur.com/beNis.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/beNis.gif" alt="ripple"></a>  </p>
  
  <p>I don't like this sudden change, I want to make animation continue forever.
  How can I do it?  </p>
  
  <p>In the code snippet, I could not display it well for some reason, so the current situation is in <a href="https://jsfiddle.net/36tdw4zx/1/" rel="noreferrer">JSFiddle</a>.  </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>body {font-size: 62.5%; background-color: #000;}
  
  .ripple {
    margin: auto;
    margin-top: 10rem;
    background-color: #fff;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    animation: ripple 2s linear infinite;
  }
  @keyframes ripple {
    0% {
      box-shadow: 0 0 0 .7rem rgba(255,255,255, 0.2),
                  0 0 0 1.5rem rgba(255,255,255, 0.2),
                  0 0 0 5rem rgba(255,255,255, 0.2);
    }
    100% {
      box-shadow: 0 0 0 1.5rem rgba(255,255,255, 0.2),
                  0 0 0 4rem rgba(255,255,255, 0.2),
                  0 0 0 8rem rgba(255,255,255, 0);
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="ripple" style="animation-delay: 0s"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>By the way, I tried also this(▼) with HTML, but the circles overlapped and I could not do it well.. :(  </p>
  
  <pre><code>&lt;div class="ripple" style="animation-delay: 0s"&gt;&lt;/div&gt;
  &lt;div class="ripple" style="animation-delay: 1s"&gt;&lt;/div&gt;
  &lt;div class="ripple" style="animation-delay: 2s"&gt;&lt;/div&gt;
  </code></pre>