@arcmantle/library
    Preparing search index...

    Function shimKeyframesHeightAuto

    • We can't animate height: auto, but we can calculate the height, and shim keyframes by replacing it with the element's scrollHeight before the animation.

      Parameters

      • keyframes: Keyframe[]
      • calculatedHeight: number
      • OptionalinitialHeight: number

      Returns (Keyframe & { height: undefined | null | string | number })[]

      await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);
      this.body.style.height = 'auto';