Negotiate Pushing Milestone
Wondering what’s next for npm?Check out our public roadmap! »

window-scroll

1.0.0 • Public • Published

Window Scroll Position

Polyfill for window.scrollX and window.scrollY.

The implementation comes from jQuery 1.x (supports IE6+). (1)

Usage

var scroll = require("window-scroll");
console.log("window.scrollX:", scroll.getScrollX());
console.log("window.scrollY:", scroll.getScrollY());

Installation

npm install window-scroll

Install

npm i window-scroll

DownloadsWeekly Downloads

520

Version

1.0.0

License

Public Domain

Last publish

Collaborators

  • avatar