isUserScrolling

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.is

Check the user is scrolling a particular element

Params

  1. $elm”document”HTMLElement

    The element to monitor

Return

  1. -Boolean

    If the element is in the viewport or not

Example

import { isUserScrolling } from '@blackbyte/sugar/is'
if (isUserScrolling(myCoolHTMLElement) {
  // i'm in the viewport
}

Todo

  • testsnormal