DEV Community

Discussion on: How to overlay your background images

Collapse
 
hoffmann profile image
Peter Hoffmann

Could the same result be also archived by CSS filters?

Collapse
 
selbekk profile image
selbekk

Great question! Yeah, you'd think that by adding a filter: brightness(0.5), you'd end up with something similar. Unfortunately, that darkens everything, including the content in front of the background image.

Here's a codepen showing what I mean: