#Scroll Spy
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.