asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > CSS Properties > Filter Functions

CSS Filter Functions


CSS filters comprise a set of functions that allow authors to manipulate the display of visual objects, with any of several predefined filter effects.

PropertyDescription
blurApplies a blur effect to an image.
brightnessAdjusts the brightness of an image.
contrastAdjusts the contrast of an image.
drop-shadowApplies a drop shadow effect to an image.
grayscaleRenders an image in grayscale.
hue-rotateApplies a hue rotation to an image.
invertReverses the hue, saturation, and brightness values of an image.
opacitySets the level of opacity for an image.
saturateSets the level of saturation for an image.
sepiaRenders an image in sepia mode.
urlSets the location of an XML file that specifies an SVG filter.

The following example illustrates the effects of passing different values to the available CSS filter functions.

CSS Filter Functions Demo
Run Sample | View Source

This section assumes you already have some familiarity with the basics of CSS filters. If not, I suggest starting with a brief overview on Understanding and Using CSS Filters.

External Reference: Filter Effects Module Level 1

See Also

CSS Animation Properties, CSS Transform Functions, CSS Transition Properties



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note