OpacityAnimation.Duration | duration property

Applies to Windows only

Gets the amount of time over which the opacity animation should be performed. This does not include the delay.

Syntax


var duration = opacityAnimation.duration;

Property value

Type: Number [JavaScript] | System.TimeSpan [.NET] | Windows::Foundation::TimeSpan [C++]

The duration of the animation.

Remarks

The duration can be 0, in which case the opacity is instantly set to its final value and no animation is shown.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.Core.AnimationMetrics
Windows::UI::Core::AnimationMetrics [C++]

Metadata

Windows.winmd

See also

OpacityAnimation
Delay
Animation metrics sample

 

 

Show:
© 2014 Microsoft