Freigeben über


SpeedRatio

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the rate at which time progresses for a Timeline object, relative to its parent.

<object SpeedRatio="Double"  .../>
value = object.SpeedRatio
object.SpeedRatio = value

Property Value

Type: Double

A finite value greater than 0 that specifies the rate at which time progresses for this timeline, relative to the speed of the timeline's parent. If the timeline is a root timeline, this property specifies the default timeline speed. The value is expressed as a factor where 1 represents normal speed, 2 is double speed, 0.5 is half speed, and so on.

This property is read/write. The default value is 1.

Managed Equivalent

SpeedRatio

Remarks

Momentary or nonlinear apparent speed changes to animations can be accomplished by using spline animations.

For more information on basic concepts, see Key-Frame Animations. Note that the Key-Frame Animations topic is written primarily for users of the managed API, and may not have code examples or specific information that address the JavaScript API scenarios.