AnimationOptions

Interface AnimationOptions

The AnimationOptions provide additional options of a whole animation sequence.

interface AnimationOptions {
    delay?: number;
    duration?: number;
    iterationCount?: number;
    playbackRate?: number;
    playState?: AnimationPlayState;
    time?: number;
    timingFunction?: AnimationTimingFunction;
}

Properties

delay?: number

The initial delay of the animation sequence.

0
duration?: number

The total duration of the animation sequence in milliseconds.

1000
iterationCount?: number

The number of iterations of the animation sequence.

1
playbackRate?: number

The playback rate of the animation sequence.

1
playState?: AnimationPlayState

The play state of the animation sequence.

AnimationPlayState.INITIAL
time?: number

The current time of the animation sequence between 0 and the total duration.

0
timingFunction?: AnimationTimingFunction

The timing function used for the interpolation.

AnimationTimingFunction.LINEAR

Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: