Visual Filters and Transitions Reference | Internet Development Index |
As of Microsoft® Internet Explorer 4.0, you can apply multimedia-style effects to your Web pages using visual filters and transitions. You can apply visual filters and transitions to standard HTML controls, such as text containers, images, and other windowless objects. Transitions are time-varying filters that create a transition from one visual state to another. By combining filters and transitions with basic scripting, you can create visually engaging and interactive documents.
Internet Explorer 5.5 and later supports a rich variety of optimized filters. Click the following button to see a demonstration of many of these filters and how to use them.
The links in the following sections provide access to the object model exposed by the visual filters and transitions.
Procedural Surfaces Reference
Procedural surfaces are colored surfaces that display between the content of an object and the object's background. Procedural surfaces define each pixel's RGB color and alpha values dynamically. Only the procedure used to compute the surface is stored in memory. The content of an object with a procedural surface applied is not affected by the procedural surface.
Procedural Surfaces
AlphaImageLoaderDisplays an image within the boundaries of the object and between the object background and content, with options to clip or resize the image. When loading a Portable Network Graphics (PNG) image, tranparency—from zero to 100 percent—is supported.
GradientDisplays a colored surface between the object's background and content.
Static Filters Reference
Though all filters and transitions are technically filters, the following filters statically change the way the content of an object displays. The Compositor filter is implemented as a transition, but gives only a static output.
Static Filters
AlphaAdjusts the opacity of the content of the object.
BasicImageAdjusts the color processing, image rotation, or opacity of the content of the object.
BlurBlurs the content of the object so that it appears out of focus.
ChromaDisplays a specific color of the content of the object as transparent.
CompositorDisplays new content of the object as a logical color combination of the new and original content. The color and alpha values of each version of the content are evaluated to determine the final color on the output image.
DropShadowCreates a solid silhouette of the content of the object, offset in the specified direction. This creates the illusion that the content is floating and casting a shadow.
EmbossDisplays the content of the object as an embossed texture using grayscale values.
EngraveDisplays the content of the object as an engraved texture using grayscale values.
GlowAdds radiance around the outside edges of the content of the object so that it appears to glow.
ICMFilterConverts the color content of the object based on an Image Color Management (ICM) profile. This enables improved display of specific content, or simulated display for hardware devices, such as printers or monitors.
LightCreates the effect of a light shining on the content of the object.
MaskFilterDisplays transparent pixels of the object content as a color mask, and makes the nontransparent pixels transparent.
MatrixResizes, rotates, or reverses the content of the object using matrix transformation.
MotionBlurCauses the content of the object to appear to be in motion.
ShadowCreates a solid silhouette of the content of the object, offset in the specified direction. This creates the illusion of a shadow.
WavePerforms a sine wave distortion of the content of the object along the vertical axis.
Transitions Reference
Transitions are filters that reveal new content of an object with a particular visual effect. Use the apply and play filters to initiate the visual effect.
Transitions
BarnReveals new content of the object with a motion that resembles doors opening or closing.
BlindsReveals new content of the object with a motion that appears to open or close blinds.
CheckerBoardReveals new content of the object by uncovering squares placed like a checkerboard over the original content.
FadeReveals new content of the object by fading out the original content.
GradientWipeReveals new content of the object by passing a gradient band over the original content.
InsetReveals new content of the object diagonally.
IrisReveals new content of the object with an iris effect, similar to the opening of a camera aperture.
PixelateDisplays the content of the object as colored squares that take the average color value of the pixels they replace. This filtered display can be used as a transition.
RadialWipeReveals new content of the object with a radial wipe, like a windshield-wiper blade.
RandomBarsReveals new content of the object by exposing random lines of pixels.
RandomDissolveReveals new content of the object by exposing random pixels.
SlideReveals new content of the object by sliding sections of the image into place.
SpiralReveals new content of the object with a spiral motion.
StretchReveals new content of the object with a stretching motion to cover the original content. One option resembles a cube rotating from one face to another.
StripsReveals new content of the object by moving successive strips into place, like a diagonal saw blade passing across the original content.
WheelReveals new content of the object with a rotating motion, like spokes of a wheel covering the original content.
ZigzagReveals new content of the object with a forward and back motion that moves down the object.
Attributes/filters Reference
The following filters apply to one or more filters. When you move the pointer over a property name, the pop-up information that appears lists the filters that the property applies to.
Attributes/filters
AddSets or retrieves a value that indicates whether the filter image overlays the original image.
bandsSets or retrieves the number of strips into which the content is divided during the transition.
BiasSets or retrieves a percentage of a value that is added to each color component of the filtered result.
ColorSets or retrieves the value of the color applied with the filter.
ColorSets or retrieves the value of the color applied with the filter.
ColorSpaceSets or retrieves the name and path for a particular .icm color mapping profile. With a profile assigned, the filtered output simulates the graphical output of devices that use the assigned profile.
DirectionSets or retrieves the direction that the filter's effect is offset.
DirectionSets or retrieves the direction of motion in the transition.
DurationSets or retrieves the length of time the transition takes to complete.
DxSets or retrieves the X component of the augmenting vector for linear transformations.
DySets or retrieves the Y component of the augmenting vector for linear transformations.
EnabledSets or retrieves a value that indicates whether the filter is enabled.
EndColorSets or retrieves the final opaque color for a gradient surface.
EndColorStrSets or retrieves the final color for a gradient surface.
filterSets or retrieves the filter or collection of filters applied to the object.
FilterTypeSets or retrieves the method used to define pixels of new content.
FinishOpacitySets or retrieves the opacity level at the end of the gradient applied with the Alpha filter.
FinishXSets or retrieves the horizontal position at which the opacity gradient ends.
FinishYSets or retrieves the vertical position at which the opacity gradient ends.
FreqSets or retrieves the number of waves created by the Wave filter.
FunctionSets or retrieves the compositing operation to perform.
GradientSizeSets or retrieves the percentage of the object that is covered by the gradient band.
GradientTypeSets or retrieves the orientation of the gradient.
GrayScaleSets or retrieves the value that indicates whether content is displayed as the average of the RGB component values.
GridSizeXSets or retrieves the number of grid columns used for the filter. The value can range from 1 to 100.
GridSizeYSets or retrieves the number of grid rows used for the filter. The value can range from 1 to 100.
IntentSets or retreives the intended purpose for the color content of the object. The filter adjusts the color output to improve the display of content with the selected purpose.
InvertSets or retrieves the value that indicates whether the content is displayed as the complement of the RGB component values.
IrisStyleSets or retrieves the shape of the Iris filter aperture.
LightStrengthSets or retrieves the difference in light intensity between the peaks and troughs of the waves created by the Wave filter.
M11Sets or retrieves the first row/first column matrix entry for linear transformations.
M12Sets or retrieves the first row/second column matrix entry for linear transformations.
M21Sets or retrieves the second row/first column matrix entry for linear transformations.
M22Sets or retrieves the second row/second column matrix entry for linear transformations.
MakeShadowSets or retrieves the value that indicates whether content is displayed as a shadow.
MaskSets or retrieves whether transparent content of an object is changed to the MaskColor value.
MaskColorSets or retrieves the color used to mask transparent content of an object.
MaxSquareSets or retrieves the maximum width in pixels of a pixelated square.
MirrorSets or retrieves the value that indicates whether the content display is reversed.
MotionSets or retrieves the corner from which new content is revealed during a Strips transition.
MotionSets or retrieves a value that indicates whether content is revealed as defined by the WipeStyle property setting, or in the opposite direction.
MotionSets or retrieves the value that indicates whether new content is revealed from the outside or the inside first.
OffXSets or retrieves the value that the drop shadow is offset from the object along the x-axis.
OffYSets or retrieves the value that the drop shadow is offset from the object along the y-axis.
OpacitySets or retrieves the opacity level that is applied to the content of an object.
OpacitySets or retrieves the opacity level at the beginning of the gradient applied with the Alpha filter.
OrientationSets or retrieves the value that indicates whether the filter effect is horizontal or vertical.
OverlapSets or retrieves the fraction of the transition's duration that both original and new content are displayed.
PercentSets or retrieves the point in a transition at which to capture the display for a static filter output.
PhaseSets or retrieves the phase offset at which the sine wave starts.
PixelRadiusSets or retrieves the radius of the area of opaque content around a pixel that is affected by the Blur filter.
PositiveSets or retrieves the value that indicates whether the filter creates a drop shadow from the nontransparent pixels of the object.
RotationSets or retrieves the value that indicates whether the content is rotated in ninety-degree increments.
ShadowOpacitySets or retrieves the opacity level of a shadow created by the Blur filter.
sizingMethodSets or retrieves the manner in which to display an image within the boundary of the object that the AlphaImageLoader filter is applied to.
SizingMethodSets or retrieves a value that indicates whether the container is resized to fit the resulting image.
SlideStyleSets or retrieves the method used to reveal the new content.
spokesSets or retrieves the number of wedges that the content is divided into during the transition.
SquaresXSets or retrieves the number of columns for the CheckerBoard transition.
SquaresYSets or retrieves the number of rows for the CheckerBoard transition.
srcSets or retrieves the URL of an image that the AlphaImageLoader filter loads.
StartColorSets or retrieves the initial opaque color for a gradient surface.
StartColorStrSets or retrieves the initial color for a gradient surface.
StartXSets or retrieves the horizontal position at which the opacity gradient starts.
StartYSets or retrieves the vertical position at which the opacity gradient starts.
statusRetrieves the state of the transition.
StrengthSets or retrieves the distance, in pixels, that a filter effect extends.
StretchStyleSets or retrieves the method used to reveal the new content.
StyleSets or retrieves the shape characteristics of the opacity gradient.
TransitionSets or retrieves the type of transition.
WipeStyleSets or retrieves the method used to reveal the new content.
WipeStyleSets or retrieves a value that indicates whether the gradient band moves vertically or horizontally.
XRaySets or retrieves the value that indicates whether the content is displayed as a grayscale defined by the complement of the average red and green component values.
filters Reference
filters
addAmbientAdds an ambient light to the Light filter.
addConeAdds a cone light to the Light filter effect object to cast a directional light on the page.
addPointAdds a light source to the Light filter.The light source originates at a single point and radiates in all directions.
applyCaptures the initial display of an object's content for a transition.
changeColorChanges the color of a Light filter's light.
changeStrengthChanges the intensity of a light applied with the Light filter.
clearDeletes all lights associated with the Light filter.
elementImageNot currently supported.
moveLightMoves the focus for cone lights or the origin for point lights that are applied with the Light filter.
playPlays the transition.
stopStops transition playback.
Events Reference
The onfilterchange fires when a filter's filters change state or when a filter completes a transition.
Events
onfilterchangeFires when a visual filter changes state or completes a transition.