brightness()
robgmerrill124 total contributions
Published Jul 12, 2021Updated Nov 10, 2023
Contribute to Docs
Defines the brightness or darkness of an element.
Syntax
filter: brightness(<value>);
where a required <value>
can be one of the following:
- Number value:
0
,1.4
- Percentage value:
100%
,50%
Example
The example below applies the brightness filter to the Codecademy banner icon image.
.banner-image {filter: brightness(150%);}
Here, the original image is on the left and the image on the right has the filter set at brightness(150%)
.
All contributors
- robgmerrill124 total contributions
- Anonymous contributorAnonymous contributor5 total contributions
- christian.dinh2476 total contributions
- Anonymous contributorAnonymous contributor3071 total contributions
- robgmerrill
- Anonymous contributor
- christian.dinh
- Anonymous contributor
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.