29 October, 2005

CSS Filters

0 Comments

Written by Jason Davies Topics: CSS

Microsoft-Specific Style Sheet Properties

Microsoft has already added some of its own properties to cascading style sheets. They are multimedia filters and transitions which can be viewed in Internet Explorer and accessed via a style sheet. You can also do all sorts of things such as change the cursor nad even use downloadable fonts. These are probably only the beginning of a horde of new useful properties introduced into style sheets.

Microsoft had already supported a variey of multimedia filters by using ActiveX controls included with Internet Explorer. But these were slightly limited because of lack of familiarity with the technology. So instead, Microsoft have introduced these multimedia effects through style sheets. This has been done in a very generalised manner, allowing other vendors to add their own filters. Here is the basic form of a filter rule the basic form of a filter rule:

Filter: filtername(filtervalue1, filtervalue2,...)

See the Microsoft documentation for a complete discussion of the possible values for the various filters. Here is a table of the possible values for filtername:

Filter NameDescriptionExample
AlphaSets a uniform transparency level
Alpha
BlurCreates the impression of moving at high speed
Blur
ChromaMakes a specific colour transparent
Chroma
DropShadowCreates a solid silhouette
DropShadow
FlipHCreates a horizontal mirror image
FlipH
FlipVCreates a vertical mirror image
FlipV
GlowAdds radiance around the outside edges of the object
Glow
GrayscaleDrops colour information from the image
Grayscale
InvertRevereses the hue, saturation and brightness values
Invert
LightProjects a light source onto an object
Light
MaskCreates a transparent mask from an object
Mask
ShadowCreates an offset solid silhouette
Shadow
WaveCreates a sine wave distortion along the X axis
Wave
XrayShows just the edges of the object
Xray

0 Responses to “CSS Filters”

Leave a Comment