<div>
  <svg xmlns="http://www.w3.org/2000/svg" 
     width="90px" height="60px">
    <path id="wave" 
        fill="none" 
        stroke="#262626" 
        stroke-width="4"
        stroke-linecap="round">>
    </path>
  </svg>
</div>
html, body { 
  height: 100%;
  margin: 0;
  width: 100%;
}

body { 
  align-items: center; 
  display: flex; 
}

div {
  align-items: center;
  border: 4px solid #262626;
  display: flex;
  height: 120px;
  margin: 0 auto;
  width: 120px;
}

svg { 
  margin: 0 auto; 
  overflow: hidden;
}

#wave { 
  stroke-dasharray: 0 8 117 8; 
}
View Compiled
function buildWave(w, h) {
 
  var m = 0.512286623256592433;
  
  var pathData = [
    'M', 0, h * 0.625, 
    'c',  0.25 * h * m, 0,
    0.25 * h * (1 - m), -0.25 * h, 
    0.25 * h, -0.25 * h,
    's', 0.25 * h * (1 - m), 0.25 * h,
    0.25 * h, 0.25 * h,
    's', 0.25 * h * (1 - m), -0.25 * h,
    0.25 * h, -0.25 * h,
    's', 0.25 * h * (1 - m), 0.25 * h,
    0.25 * h, 0.25 * h,
    's', 0.25 * h * (1 - m), -0.25 * h,
    0.25 * h, -0.25 * h,
    's', 0.25 * h * (1 - m), 0.25 * h,
    0.25 * h, 0.25 * h,
    's', 0.25 * h * (1 - m), -0.25 * h,
    0.25 * h, -0.25 * h
  ].join(' ');
  
  path.setAttribute('d', pathData);
}

var path = document.querySelector('#wave');
buildWave(90, 60);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.