AnimationOptions

Type alias AnimationOptions

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

The AnimationOptions provide additional options of a whole animation sequence.

Type declaration

  • Optional delay?: number

    The initial delay of the animation sequence.

    Default

    0
    
  • Optional duration?: number

    The total duration of the animation sequence in milliseconds.

    Default

    1000
    
  • Optional iterationCount?: number

    The number of iterations of the animation sequence.

    Default

    1
    
  • Optional playState?: AnimationPlayState

    The play state of the animation sequence.

    Default

    "initial"
    
  • Optional playbackRate?: number

    The playback rate of the animation sequence.

    Default

    1
    
  • Optional time?: number

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

    Default

    0
    
  • Optional timingFunction?: AnimationTimingFunction

    The timing function used for the interpolation.

    Default

    "linear"