• Gradually reveals the specified HTML element by increasing its opacity over a given duration, then clearing its display style.

    Parameters

    • element: HTMLElement

      The HTML element to be revealed.

    • duration: number = 400

      The duration over which the element's opacity should be increased, in milliseconds. Defaults to 400ms.

    Returns void

    Throws

    If the provided element is null or undefined.

    See

    Example

    // Get an element by its GUID
    const targetElement = ix.api.dom.getHtml("<ELEMENT-GUID>");

    // Reveal the target element over a period of 400ms
    ix.api.dom.show(targetElement);

    // Reveal the target element over a period of 1000ms
    ix.api.dom.show(targetElement, 1000);