In my code, I am retrieving an image from a specific source:
<img src={event.eventData?.foto_portada} />
The issue arises when I attempt to utilize that image within my CSS properties as shown below:
.background-image {
background-image: url();
filter: blur(100px);
-webkit-filter: blur(100px);
height: 100%;
width: 100%;
opacity: 0.33;
pointer-events: none;
left: 0;
position: absolute;
right: 0;
}
At this point, I am unsure of what steps to take.
Interestingly, the CSS code successfully worked when I used a random image and assigned the corresponding class name to a div like so:
<div className="background-image"></div>
However, upon trying to replicate this behavior with the correct image (as the image varies based on the event being referenced), it no longer functions as expected!