eligius
    Preparing search index...

    Variable isElementInViewportConst

    Checks if an element is currently visible within the viewport.

    Uses getBoundingClientRect() to determine if the element is within the viewport boundaries.

    Operation data with isInViewport boolean indicating visibility

    // Check if element is in view
    const result = isElementInViewport({
    selectedElement: $targetElement
    });
    // result.isInViewport = true or false