Web site design and hosting - 845Chapter 30 .Style Sheet and Style Objects Filter

845Chapter 30 .Style Sheet and Style Objects Filter Name Description and Properties 23Random effect Methods: apply() (freezes current display) play() (plays the transition) stop() (stops transition mid-stream) To make a transition work under script control, a filter must be applied to the element that you want the transition to work on. That can be done by script or by assigning a filter style to the element. As for the scripting, you begin by invoking the apply() method of the desired filterobject. Next, script the change, such as assigning a new URL to the srcproperty of an IMG element. While you do this, the apply() method freezes the image until you invoke the play() method on the filter. Listing 30-1 effects a checkerboard transition between two images after you click the image. Listing 30-1: A Reveal Transition Between Images IE4+ Transition

IE4+ Transition


Click on the image to cause a reveal transition.

elementRef.style.filterObject
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Leave a Reply