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

  1. settings*-Object

    The settings of the query

Return

  1. -HTMLElement

    The founded element

Example

import { elementsInViewport } from '@blackbyte/sugar/dom';
const $elements = elementsInViewport();

Settings

  1. rootNodedocument.bodyHTMLElement

    Specify the root node from where you want to query

Todo

  • testsnormal