This example demonstrates how to slow down an element's timeline relative to its parent's timeline. The time container is set to begin at zero seconds, with a duration of five seconds and speed set to 0.5 (or half of its normal speed). The child element is set to begin one second after its parent, with a duration of one second and speed set to 0.5 (half of its normal speed). The parent's speed of 0.5 multiplied by the child's speed of 0.5 equals a speed of 0.25, or 25%. Therefore, the child element plays at 25% of its normal speed, or four times its duration, yielding a total duration of four seconds. The parent's timeline plays at only 50% of its normal speed, or twice its duration, yielding a total duration of 10 seconds.
Time Container Timer: 0To view the source code, right-click this page and choose View Source from the shortcut menu that appears.
© 2007 Microsoft Corporation. All rights reserved. Terms of use.