Get the current x/y scroll position
npm install scroll-xy> Get the current x/y scroll position and scroll maximum
```
$ npm install --save scroll-xy
`js
var scrollPosition = require('scroll-xy')
scrollPosition()
//=> {x, y, maximum: {x, y}} for window
scrollPosition(element)
//=> {x, y, maximum: {x, y}} for element
`
#### scrollPosition(element) -> object
Returns an {x, y, maximum: {x, y}} object where values are integers.
##### element
Type: HTMLElementwindow
Default:
A DOM element, defaulting to window` which has special handling.
MIT © Ben Drucker