webani - v1.0.0
    Preparing search index...

    Represents a set of animations that can be played sequentially or asynchronously.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    The list of animations in the set.

    nextIsAsynchronous: boolean

    Indicates if the next animation to be added should be asynchronous.

    Accessors

    • get duration(): number

      Gets the total duration of all animations in the set. This is the sum of the durations of all the animations.

      Returns number

      The total duration of the animation set.

    Methods

    • Adds a new animation to the set. The animation can either be synchronous or asynchronous. If the next animation is asynchronous, it will be appended after the last animation. If it is not asynchronous, it will play immediately after the current animation ends.

      Parameters

      • animation: WebaniCollectionAnimation

        The animation to add.

      • Optionalasynchronous: boolean = true

        Whether the animation should be added asynchronously.

      Returns void