end
src
src
URL
Expand Minimize

FROM Attribute | from Property

This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.

Sets or gets a progress value indicating the point from which to begin the transition.

Syntax

HTML <t:TRANSITIONFILTER FROM = sFrom... >
Scripting [ sFrom = ] t:TRANSITIONFILTER.from [ = sFrom ]

Possible Values

sFrom String that specifies or receives the starting value of the transition. Legal values are real numbers in the range 0.0-1.0. For instance, this attribute would equal "0.3" to begin a transition with the destination content transitioned in by 30 percent.
0.0
Default. Begin transition at 0 progress.

The property is read/write. The property has a default value of 0.0.

Remarks

from was introduced in Microsoft Internet Explorer 6.

The from is ignored if the values attribute is specified.

The transition can transition in or out depending how the to property and the from property are set. For example, if the from property has a value of 1.0 and the to property has a value of 0.0, the transition appears to transition out. However, to set the transition to go out, you use the mode property.

When writing script to dynamically change the properties of an active animation, results might be unpredictable or undefined. Restart the animation with beginElement after you change the properties. THe following example shows how to use beginElement.



<SCRIPT>
object.endElement();
object.from='0.5';
object.beginElement();
</SCRIPT>

For the animate object, the animateMotion object, and the animateColor object, the time2 behavior uses the following model to evaluate which properties to animate.

  • The values property, if specified, overrides any setting for the from property, the toproperty, or the by property.
  • The from property is used, unless the values property or the path property is specified.
  • The to property, if specified, overrides any setting for the by property.
  • The by property doesn't override any properties.

Example

This example shows how the from property begins progress of the transition during the transition.


<HTML XMLNS:t = "urn:schemas-microsoft-com:time">
<HEAD>
<STYLE>
    .time{behavior: url(#default#time2);}
</STYLE>
<?import namespace = t urn = "urn:schemas-microsoft-com:time" 
implementation = "#default#time2" />
</HEAD>
<BODY>

<t:TRANSITIONFILTER  TYPE="barWipe" DUR="3" TARGETELEMENT="oDiv1" FROM="0.5"
TO="1.0"/>

<DIV CLASS="time" ID="oDiv1" DUR="indefinite" STYLE="position:relative; 
left:20px; width:420px; height:100px;
background-image:url(ART_time_progress.gif); background-repeat: no-repeat;">
</DIV>

</BODY>
</HTML>

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/htmltime/transitions/fromEX1.html

Applies To

t:TRANSITIONFILTER

See Also

Community Additions

ADD
Show:
© 2014 Microsoft