In CSS, the background-image opacity property specifies an element's transparency, with a value from 0.0 to 1.0. However, using a CSS pseudo-element like ::before, you create a separate background layer and adjust its opacity independently.
CSS Background Image Opacity Syntax Example
img {
opacity: 0.5;
}