Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Module landing page: filter effects #24261

Merged
merged 13 commits into from
Feb 16, 2023
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 39 additions & 10 deletions files/en-us/web/css/filter_effects/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Filter Effects
title: CSS filter effects
slug: Web/CSS/Filter_Effects
page-type: css-module
tags:
Expand All @@ -8,30 +8,59 @@ tags:
- Guide
- Overview
- Reference
browser-compat:
- css.properties.backdrop-filter
- css.properties.filter
spec-urls:
- https://drafts.fxtf.org/filter-effects-2/
- https://drafts.fxtf.org/filter-effects-1/
---

{{CSSRef}}

**Filter Effects** is a module of CSS that defines a way of processing an element's rendering before it is displayed in the document.
The properties in the **CSS filter effects** module let you define a way of processing an element's rendering before the element is displayed in the document. Examples of such effects include blurring and changing the intensity of the color of an element.

## Reference
### Filter effects in action

Play with the various sliders to apply filter effects to the image below:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not seeing any changes in the image when I move the sliders (chrome, firefox)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mdn/css-examples#116 fixes it. fingers crossed


{{EmbedGHLiveSample("css-examples/modules/filters.html", '100%', 420)}}

To see the code for this filter effects sample, [view the source on Github](https://github.com/mdn/content/blob/main/files/en-us/web/css/css_filter_effects/index.md).

### Properties

- {{cssxref("backdrop-filter")}}
- {{cssxref("filter")}}

### Data types
### Functions

- {{cssxref("filter-function/blur", "blur()")}}
- {{cssxref("filter-function/brightness", "brightness()")}}
- {{cssxref("filter-function/contrast", "contrast()")}}
- {{cssxref("filter-function/drop-shadow", "drop-shadow()")}}
- {{cssxref("filter-function/grayscale", "grayscale()")}}
- {{cssxref("filter-function/hue-rotate", "hue-rotate()")}}
- {{cssxref("filter-function/invert", "invert()")}}
- {{cssxref("filter-function/opacity", "opacity()")}}
- {{cssxref("filter-function/saturate", "saturate()")}}
- {{cssxref("filter-function/sepia", "sepia()")}}

## Related concepts

- {{CSSxRef("<image>")}} data type
- {{cssxref("<filter-function>")}} data type

- {{cssxref("background-image")}} CSS property
- {{cssxref("background-blend-mode")}} CSS property
- {{cssxref("mix-blend-mode")}} CSS property

- {{glossary("interpolation")}} glossary term

- {{cssxref("<filter-function>")}}
- {{cssxref("color-interpolation-filters")}} SVG property

## Specifications

{{Specifications}}

## Browser compatibility
## See also

{{Compat}}
- Properties in the CSS [compositing and blending](/en-US/docs/Web/CSS/Compositing_and_Blending) module enable blending an element's background layers together and blending an element with its container.
- The SVG {{SVGElement("filter")}} element and the SVG filter primitives, including {{SVGElement("feSpotLight")}}, {{SVGElement("feBlend")}}, {{SVGElement("feColorMatrix")}}, {{SVGElement("feComponentTransfer")}}, {{SVGElement("feComposite")}}, {{SVGElement("feConvolveMatrix")}}, {{SVGElement("feDiffuseLighting")}}, {{SVGElement("feDisplacementMap")}}, {{SVGElement("feDropShadow")}}, {{SVGElement("feFlood")}}, {{SVGElement("feGaussianBlur")}}, {{SVGElement("feImage")}}, {{SVGElement("feMerge")}}, {{SVGElement("feMorphology")}}, {{SVGElement("feOffset")}}, {{SVGElement("feSpecularLighting")}}, {{SVGElement("feTile")}}, and {{SVGElement("feTurbulence")}}.