Function iterateAnimations

  • Parameters

    • element: Element
    • webAnimationCallback: (animation: Animation) => void

      This function is called for each Animation on the element. It waitForMeasureTime before reading the animations.

    • legacyCallback: (element: Element) => void

      This function is called if the browser does not support the Web Animations API. It is called after waitForMutateTime so it can safely modify styles.

    • realtime: boolean = false

      If true, then it does not waitForMeasureTime or waitForMutateTime and runs synchronously.

    Returns Promise<void>