Share via


RotateKeyframe Element

Defines a rotation keyframe for an animation.

Syntax

<RotateKeyframe
    Interpolation="Interpolation element"
    RelativeTo="{Absolute | Current | Final}"
    Time="float"
    Value="Rotation"
/>

Attributes

Interpolation

Specifies the Interpolation from this keyframe to the next. Use the inline construction for this element.

RelativeTo

A member of the KeyframeValueReference enumeration that specifies how to interpret the keyframe's value.

Time

Specifies the time, in seconds, at which this keyframe occurs.

Value

Specifies a Rotation structure that indicates the axis rotation value. Use the inline construction for this element. For example: Value="0deg;0,0,1".

Remarks

Animations require at least two keyframes of the same type (for example, two AlphaKeyFrames). With only one keyframe, there is no beginning or end and therefore nothing to animate. In addition, the first keyframe must start at Time="0".

To avoid jagged edges around the edge of an image when you rotate it, create transparent borders on the image first. For more information, see Using Antialiasing and Transparent Borders for Animated Images.

Requirements

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also