An open API service indexing awesome lists of open source software.

https://github.com/appleple/nice-spy

A library used to update classnames of links based on scroll position
https://github.com/appleple/nice-spy

Last synced: 9 months ago
JSON representation

A library used to update classnames of links based on scroll position

Awesome Lists containing this project

README

          

# Nice Spy
A library used to update classnames of links based on scroll position

## Demos

## Installation
- [npm](https://www.npmjs.com/package/nice-spy)
- [standalone](https://raw.githubusercontent.com/appleple/nice-spy/master/js/nice-spy.js)

via npm
```shell
npm install nice-spy --save
```

or yarn

```shell
yarn add nice-spy
```

### Basic

```html

section1

section2

section3

```

```js
new NiceSpy('.js-nicespy', {
offsetTop: 20,
});
```