brightness()
Quick Summary for brightness()
The brightness() CSS function applies a linear multiplier to the input image, making it appear brighter or darker. Its result is a <filter-function>.
Code Usage for brightness()
brightness(amount) 
More Details for brightness()

brightness()

The brightness() CSS function applies a linear multiplier to the input image, making it appear brighter or darker. Its result is a <filter-function>.

Syntax

brightness(amount) 

Parameters

amount

The brightness of the result, specified as a <number> or a <percentage>. A value under 100% darkens the image, while a value over 100% brightens it. A value of 0% will create an image that is completely black, while a value of 100% leaves the input unchanged. The lacuna value for interpolation is 1.

Examples

Setting brightness using numbers and percentages

brightness(0%)   /* Completely black */ brightness(0.4)  /* 40% brightness */ brightness(1)    /* No effect */ brightness(200%) /* Double brightness */ 

Specifications

Specification
Filter Effects Module Level 2 # funcdef-filter-brightness

See also

<filter-function> blur() contrast() drop-shadow() grayscale() hue-rotate() invert() opacity() saturate() sepia()

Last modified: Aug 12, 2021, by MDN contributors

Select your preferred language English (US)EspañolFrançais日本語한국어中文 (简体) Change language

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

You could also follow me on twitter. I have a couple of youtube channels if you want to see some video related content. RuneScape 3, Minecraft and also a coding channel here Web Dev.

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
There is no way to happiness. Happiness is the way.
Unknown
Random CSS Property

text-underline-position

The text-underline-position CSS property specifies the position of the underline which is set using the text-decoration property's underline value.
text-underline-position css reference