I am experimenting with using SVG graphics in HTML to create a unique background section on my website. The design features a curved shape that separates one part of the site from another. I have successfully created a basic outline for the general shape of the SVG, which you can view here: Check out the animated banner and SVG page section.
However, I am facing a challenge in getting the SVG element to stretch downwards to fill out the rest of the page. Currently, when scrolling down, the SVG stops and the background takes over, making it appear too small for the page: See why the SVG is too small.
I require assistance in extending the SVG to cover the remaining space beneath it.
Here's the snippet of my current HTML code:
<div class="wave">
<svg width="100%" height="200px" fill="none" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<path
fill="white"
d="
M0 67
C 273,183
822,-90
2525.01,98
V 359
H 0
V 67
Z">
</path>
</svg>
</div>
I've attempted adjusting the SVG values, but they often distort the graphic. I would appreciate guidance on how to effectively resolve this issue.
Additionally, I'd like to learn how to utilize the SVG viewBox property to maintain the aspect ratio of the graphic.
[Update] Here is the progress on the website so far. To achieve the desired result indicated by the arrow, I need to shift the SVG graphic downwards so that the black particle background appears above it: Check out the latest picture update.