A class for navigating the DOM with the keyboard This module started as a fork of Rubens Mariuzzo's dom-navigator.
- Copyright:
- Rubens Mariuzzo, JC Brand
- Source:
Classes
Methods
(inner) absoluteOffsetLeft(el) → {Number}
Return the absolute offset left of an element.
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | The element. |
- Source:
Returns:
The offset left.
- Type
- Number
(inner) absoluteOffsetTop(el) → {Number}
Return the absolute offset top of an element.
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | The element. |
- Source:
Returns:
The offset top.
- Type
- Number
(inner) inViewport(el) → {Boolean}
Indicates if a given element is fully visible in the viewport.
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | The element to check. |
- Source:
Returns:
True if the given element is fully visible in the viewport, otherwise false.
- Type
- Boolean