UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

6 lines (5 loc) 273 B
/** * Return whether an element is practically visible, considering things like dimensions of 0, opacity, ``visibility: hidden`` and * ``overflow: hidden``, and whether the item is scrolled off screen */ export declare function isVisible(element: HTMLElement): boolean;