@ascentbv/ts-common - v1.0.123
    Preparing search index...

    Class TimelineUtil

    Index

    Constructors

    Methods

    • Adds an action to the timeline. Delay is relative to the previous action.

      Parameters

      • delay: number

        Time in ticks to wait after the previous action.

      • callback: () => void

        Function to run when this step is triggered.

      Returns this

      The TimelineUtil instance for chaining.

    • Runs the timeline in a loop. If no number is provided, it will loop indefinitely.

      Parameters

      • Optionaltimes: number

        Number of times to loop the timeline. Omit for infinite looping.

      Returns void

    • Returns the total duration of the timeline in ticks.

      Returns number

      The total timeline duration.