10 lines
426 B
TypeScript
10 lines
426 B
TypeScript
|
|
/**
|
||
|
|
* check if element is within the viewport
|
||
|
|
* https://gist.github.com/davidtheclark/5515733#gistcomment-2113205
|
||
|
|
*
|
||
|
|
* Please update `isElementClickable.js` if the script is updated!
|
||
|
|
* @param {HTMLElement} elem element to check
|
||
|
|
* @return {Boolean} true if element is within viewport
|
||
|
|
*/
|
||
|
|
export default function isElementInViewport(elem: HTMLElement): boolean;
|
||
|
|
//# sourceMappingURL=isElementInViewport.d.ts.map
|