Contents

AnimationFillMode

Options that determine which animation frames display outside of the normal duration.

Declaration

struct AnimationFillMode

Overview

This structure enables you to lock an animation at its starting frame for a period of time before beginning. You can also lock an animation to its ending frame for a specified amount of time after it finishes, or both.

An animation applies the fill mode you choose when a range determined by trimStart, trimEnd, or trimDuration exceeds the animation’s underlying duration, which the framework calculates as the frame count (see frames) multiplied by the frameInterval, multiplied by speed.

For example, if you set the trimStart property for an animation of a hand waving to -1.0 and fillMode to backwards or both, the hand displays immediately, freezes at the first animation frame for one second, and then begins to wave.

Topics

Choosing a fill mode

See Also

Animation definitions