To set the opacity of background images in Webflow, you can use pseudo elements along with custom CSS. This technique allows you to adjust the opacity of the background image without affecting the opacity of the whole element.
bg-image.
bg-image class.
</body> tag section:
```css
<style>
.bg-image::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: inherit; / Uses the same background as parent /
opacity: 0.5; / Set desired opacity here /
z-index: -1;
}
</style>
```
opacity value to your desired number between 0 (fully transparent) and 1 (fully opaque).
To set the opacity of background images in Webflow, you can utilize pseudo elements and custom CSS. Add a background image to a div in Webflow, then apply a pseudo element with custom CSS to control opacity specifically for the background image, ensuring the content remains unaffected.