I am aiming to create a visually noisy background that is also transparent. Within a div container that encompasses the entire page, I currently have a blue circle contained. My ultimate objective is to blur the circle and animate it within the background using JS, but for now, I am facing challenges. The circle should remain visible, but the texture generated by SVG seems to obstruct this goal. I am reluctant to use z-index to move it to the background since I want the noise effect to be applied to the circle itself, and adjusting opacity does not yield the desired outcome. Does anyone have any suggestions or solutions?
Below is the HTML code snippet:
.background {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
filter: url(#noiseFilter);
}
.circle {
width: 400px;
height: 400px;
background: blue;
border-radius: 50%;
}
<div class="background">
<div class="circle"></div>
<svg style="display: none">
<filter id='noiseFilter'>
<feTurbulence
type='fractalNoise'
baseFrequency='6.29'
numOctaves='6'
stitchTiles='stitch'/>
</filter>
</svg>
</div>