Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.
/ scroll-spy Public archive

ES6 module for detecting element position relative to scroll window.

Notifications You must be signed in to change notification settings

Rhym/scroll-spy

Repository files navigation

#Scroll Spy

Build Status

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.

About

ES6 module for detecting element position relative to scroll window.

Resources

Stars

Watchers

Forks

Packages