Tool-Shack
    Preparing search index...

    Function toggleFullscreenWithFallback

    • Toggle fullscreen mode with CSS pseudo-fullscreen fallback for unsupported environments (such as iOS Safari)

      Parameters

      • element: HTMLElement = document.documentElement

        Target HTMLElement to toggle fullscreen for (defaults to documentElement)

      • Optionaloptions: IFullscreenFallbackOptions

        Optional configuration for fallback CSS class or z-index

      Returns Promise<boolean>

      Promise resolving to boolean indicating whether element is currently fullscreen/pseudo-fullscreen