--- title: slug: Web/CSS/filter-function tags: - CSS - CSS Data Type - Filter Effects - NeedsCompatTable - NeedsTranslation - Reference - TopicStub translation_of: Web/CSS/filter-function ---
{{cssref}}

The <filter-function> CSS data type represents a graphical effect that can change the appearance of an input image. It is used in the {{cssxref("filter")}} and {{cssxref("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()
Blurs the image.
brightness()
Makes the image brighter or darker.
contrast()
Increases or decreases the image's contrast.
drop-shadow()
Applies a drop shadow behind the image.
grayscale()
Converts the image to grayscale.
hue-rotate()
Changes the overall hue of the image.
invert()
Inverts the colors of the image.
opacity()
Makes the image transparent.
saturate()
Super-saturates or desaturates the input image.
sepia()
Converts the image to sepia.

Specification

Specification Status Comments
{{ SpecName('Filters 1.0', '#typedef-filter-function', '<filter-function>') }} {{ Spec2('Filters 1.0') }} Initial definition.

See also