<filter-function>
The <filter-function>
CSS data type represents a graphical effect that can change the appearance of an input image. It is used in the filter
(en-US) and backdrop-filter
properties.
Syntax
The <filter-function>
data type is specified using one of the filter functions listed below. Each function requires an argument which, if invalid, results in no filter being applied.
blur()
(en-US)-
Blurs the image.
brightness()
(en-US)-
Makes the image brighter or darker.
contrast()
(en-US)-
Increases or decreases the image's contrast.
drop-shadow()
(en-US)-
Applies a drop shadow behind the image.
grayscale()
-
Converts the image to grayscale.
hue-rotate()
(en-US)-
Changes the overall hue of the image.
invert()
(en-US)-
Inverts the colors of the image.
opacity()
-
Makes the image transparent.
saturate()
(en-US)-
Super-saturates or desaturates the input image.
sepia()
-
Converts the image to sepia.
Specification
Specification | Status | Comments |
---|---|---|
Filter Effects Module Level 1 The definition of '<filter-function>' in that specification. |
Rascunho atual | Initial definition. |
See also
- Properties that use this data type:
filter
(en-US) andbackdrop-filter