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:
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Could the same result be also archived by CSS filters?
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: