-3

I need to do a wavy line animation in css.

I would like it to look something like this:

wavy line

My code:

<div class="wrapper">
    <div class="line"></div>
</div>

.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;
}

https://jsfiddle.net/agxx3ysk/

Lidia K.
  • 209
  • 3
  • 13

1 Answers1

2

Check this answer already on StackOverflow Link to the wave

one more link

Just change fill:none and stroke:red properties. and you could further play around with this.

the_mishra
  • 813
  • 9
  • 24