I have been tasked with building a website. On this website they have footer in their mockup in the shape of a wave. See image below:
I can probably get away with not having the stroke or yellow line. The main issue is they would like to have this "footer wave" be 100% width. I was thinking there could be a CSS solution to this? Possibly recreating the shape in css? Is this possible?
You could use svg
.
body {
margin: 0;
}
footer {
position: absolute;
width: 100%;
height: 100px;
bottom: 0;
overflow: hidden;
}
<footer>
<svg viewBox="0 -20 700 110" width="100%" height="110" preserveAspectRatio="none">
<path transform="translate(0, -20)" d="M0,10 c80,-22 240,0 350,18 c90,17 260,7.5 350,-20 v50 h-700" fill="#CEB964" />
<path d="M0,10 c80,-18 230,-12 350,7 c80,13 260,17 350,-5 v100 h-700z" fill="#00273F" />
</svg>
</footer>