brightness()
Anonymous contributor
Anonymous contributor3077 total contributions
Anonymous contributor
Published Jul 12, 2021Updated Sep 3, 2021
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 1
Give the image a brightness of 125%
:
.banner-image {filter: brightness(125%);}
All contributors
- Anonymous contributorAnonymous contributor3077 total contributions
- robgmerrill124 total contributions
- christian.dinh2481 total contributions
- Anonymous contributor
- robgmerrill
- christian.dinh
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.