I'm currently working on implementing an animated SVG background similar to the one showcased here for educational purposes:
It appears that using a CSS SVG background won't achieve the desired effect, so I need to create the elements inline with the HTML. Here is my progress so far:
Here's the complete code:
My goal is for the SVG stage to fill the entire blue area so that I can place SVG elements inside and apply animations as seen in the reference link. However, the content of my header menu is pushing the SVG outside of the blue area.
How can I position it behind the content without being displaced by it? Is creating another div the only solution?
This is my SVG code snippet:
<svg viewBox="0 0 100 100"> /* this part */
<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>
Due to other content in the box, my SVG, which should occupy the full blue area, gets pushed down.
The Question at Hand:
I aim to feature an animated SVG background within the blue area with several animated elements. The issue is that the header is causing the entire SVG area to shift downwards off the blue section. How can I make it function like a background while having my content displayed on top?