Name
filter — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
Sets the visual, reveal, or blend filter used to display or change
content of an element. A visual filter can be applied to an element
to produce effects such as content flipping, glow, drop shadow, and
many others. A reveal filter is applied to an element when its
visibility changes. The value of the reveal filter determines what
visual effect is to be applied to the transition from hidden to shown
(or vice versa). This includes effects such as wipes, blinds, and
barn doors. A blend filter sets the speed at which a transition
between states occurs. As of this writing, the
filter property is available in Internet Explorer
4, but does not work in the Macintosh version.
Example
document.all.fancy.style.filter= "dropshadow( )"
Value
Each filter property may have more than one space-delimited filter
type associated with it. Each filter type is followed by a pair of
parentheses, which may convey parameters about the behavior of the
filter for the current element. A parameter generally consists of a
name/value pair, with assignment performed by the equals symbol. See
the filter style sheet attribute listing in Chapter 10 for details on filter settings and parameters.
Default
None.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access