I am attempting to create an effect where the bottom div overlaps the top one with a wavy SVG, giving the illusion of a wavy line on the bottom div that extends into the top div
However, my current result is different than what I expected. It looks like this: https://i.sstatic.net/Rtilp.png
I have made several attempts to correct it, but I have been unable to find a solution.
* {
margin: 0%;
padding: 0%;
}
.header-container {
width: 100%;
height: 1000px;
}
.header-top {
width: 100%;
height: 50%;
background-color: #3C8DAD;
}
.header-bottom {
width: 100%;
height: 50%;
background-color: #F5A962;
}
<div class="header-container">
<div class="header-top"></div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path fill="#F5A962" fill-opacity="1" d="M0,192L48,192C96,192,192,192,288,186.7C384,181,480,171,576,192C672,213,768,267,864,261.3C960,256,1056,192,1152,176C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path>
</svg>
<div class="header-bottom">
</div>
</div>