Skip to content
This repository was archived by the owner on Nov 23, 2020. It is now read-only.

Rhym/scroll-spy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

 
 
 

Contributors