shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
elementsInViewport
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.query
Get all the elements that are in viewport
Params
- settings*-Object
The settings of the query
Return
- -HTMLElement
The founded element
Example
import { elementsInViewport } from '@blackbyte/sugar/dom';
const $elements = elementsInViewport();Settings
- rootNodedocument.bodyHTMLElement
Specify the root node from where you want to query
Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space