Module "frontend-packages/headless-content-unblocker/src/utils/previousVisibleElement"
Functions
getPreviousVisibleElement
- getPreviousVisibleElement(node: HTMLElement, rateAsVisible?: (node: HTMLElement) => boolean): HTMLElement
-
Parameters
-
node: HTMLElement
-
Optional rateAsVisible: (node: HTMLElement) => boolean
-
- (node: HTMLElement): boolean
-
Parameters
Returns boolean
Returns HTMLElement
Get previous HTML element which is visible.
https://stackoverflow.com/a/31207879/5506547
https://stackoverflow.com/a/21696585/5506547