www.fgks.org   »   [go: up one dir, main page]

transition Attribute | Transition Property

Sets or retrieves the type of transition.

Syntax

HTML
{ filter:progid:DXImageTransform.Microsoft.RevealTrans(
    transition = iTransitionType ... ) ... }
Scripting
object.filters.item(
    "DXImageTransform.Microsoft.RevealTrans").Transition [ = iTransitionType ]

Possible Values

iTransitionTypeInteger that specifies or receives one of the following values:
0Box in.
1Box out.
2Circle in.
3Circle out.
4Wipe up.
5Wipe down.
6Wipe right.
7Wipe left.
8Vertical blinds.
9Horizontal blinds.
10Checkerboard across.
11Checkerboard down.
12Random dissolve.
13Split vertical in.
14Split vertical out.
15Split horizontal in.
16Split horizontal out.
17Strips left down.
18Strips left up.
19Strips right down.
20Strips right up.
21Random bars horizontal.
22Random bars vertical.
23Random transition from above possible values.

The property is read/write. The property has no default value.

Remarks

Transitions appear properly only on systems that have the color palette set to display 256 colors or more.

Examples

This example uses the Transition property to toggle between "circle in" and "circle out" transitions for the RevealTrans transition. Because the smaller red square is relatively positioned within its parent div element, positioning is also applied to the parent to make both elements transition together as a unit.

<SCRIPT>
function go() {
    C1.filters[0].Apply();
    if (C1.style.visibility == "visible") {
        C1.style.visibility = "hidden";
        C1.filters.revealTrans.transition=2;
    }
    else {
        C1.style.visibility = "visible";
        C1.filters[0].transition=3;
    }
    C1.filters[0].Play();
}
</SCRIPT>
<P><BUTTON >Play Transition</BUTTON></P>
<DIV ID="C1" STYLE="position:relative; visibility:visible;
   filter:revealTrans(DURATION=2, TRANSITION=3);
   width:300px; height:300px; background-color: lightgreen">
   <DIV STYLE="background-color=red;height=100px;width:100px;
      position:relative;top:100px;left:100px;"></DIV>
</DIV>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

The following example demonstrates each of the transitions in sequence.

This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Applies To

RevealTrans

See Also

apply, play, Duration, stop


MSDN Library
Web Development
HTML and CSS
Web Multimedia
Filters and Transitions
Visual Filters and Transitions Reference
Properties
Transition