@ryanpotternz/scroll-spy
v2.0.5
Published
ES6 module for detecting element position relative to scroll window.
Readme
#Scroll Spy
Add classes to an object based on it's position in the window.
YARN
yarn add @ryanpotternz/scroll-spyNPM
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.
