Module Ui/isElementInViewport
Functions
isElementInViewport
- isElementInViewport(el: HTMLElement, offsetTop?: number): boolean
- isElementInViewport(el: HTMLElement, options?: IsElementInViewportOptions): boolean
-
Parameters
-
el: HTMLElement
-
Optional offsetTop: number
Returns boolean
-
Parameters
Returns boolean
Checks if the given element is visible inside the current viewport (any part of it)