UNPKG

intro.js

Version:

User Onboarding and Product Walkthrough Library

8 lines (7 loc) 262 B
/** * Check to see if the element is in the viewport or not * http://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport * * @api private */ export default function elementInViewport(el: HTMLElement): boolean;