Example

A simple filter property example:

Laboratory

description & Usage

We use the filter property to use visual effects such as shadows and...

Informations

# Description
Default Value none
Inherited no
Animatable yes
Version CSS3
JavaScript syntax object.style.filter="grayscale(100%)"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
filter

Syntax

Values

Values Description
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.