Elementals.js

Latest Version: 3.0 RC 1 17 July 2017

Method _.Metrics.Scroll.x

Summary:

The current horizontal scroll position of the element, or the window if element is omitted.

Calling Convention:
_.Metrics.Scroll.x([Element])
Parameters:
Element Optional
The element you want the scrollbar X position of. If omitted a cross-browser method for finding the window scroll location will be used.
Returns:
The horizontal scroll position

Advertisement