Waving line in css : <p>I need to do a wavy line animation in css.</p>

<p>I would like it to look something like this:</p>

<p><a href="https://i.stack.imgur.com/3BV68.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3BV68.jpg" alt="wavy line"></a></p>

<p>My code:</p>

<pre><code>&lt;div class="wrapper"&gt;
    &lt;div class="line"&gt;&lt;/div&gt;
&lt;/div&gt;

.wrapper {
  width: 100%;
  height: 500px;
  background: #fff;
  float: left;
  position: relative;
}

.line {
  width: 100%;
  height: 2px;
  background: url('http://tiny .pl/gjhxv') left top repeat-x;
  position: absolute;
  top: 50%;
  left: 0;
}
</code></pre>

<p><a href="https://jsfiddle.net/agxx3ysk/" rel="nofollow noreferrer">https://jsfiddle.net/agxx3ysk/</a></p>
