@ryanpotternz/scroll-spy

2.0.5 • Public • Published

#Scroll Spy

Travis branch

Add classes to an object based on it's position in the window.

YARN

yarn add @ryanpotternz/scroll-spy

NPM

npm install --save @ryanpotternz/scroll-spy

###Usage

import ScrollSpy from '@ryanpotternz/scroll-spy';

ScrollSpy(elements); // @param {string} elements
  • elements is an optional string representing the list of class names to match; class names are separated by white space. See the getElementsByClassName() page for more documentation.

Readme

Keywords

none

Package Sidebar

Install

npm i @ryanpotternz/scroll-spy

Weekly Downloads

5

Version

2.0.5

License

ISC

Last publish

Collaborators

  • ryanpotternz