My goal is to achieve the following:
The SVG should dynamically scale its width to occupy 100% of the container's width.
The SVG should either stretch or compress when the container's width changes, specifically affecting the wave drawn with the svg's path.
The SVG's height should remain fixed at 760px. Currently, resizing the container causes a reduction in the SVG's height, which is not desired.
.container {
width: 100%;
background: green;
height: 760px;
}
svg {
width: 100%;
}
svg path {
width: 100%;
}
<div class="container">
<svg width="1440" height="760" viewBox="0 0 1440 760" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M677.112 54.1657C400.36 -43.9336 110.391 13.291 0 54.1657V760H1440V54.1657C1301.02 95.0404 953.865 152.265 677.112 54.1657Z"
fill="purple"
/>
</svg>
</div>