# anchor-scroller
⚓️ Smoothly scroll to `#anchors`

## Usage
1) Include the library

2) Initialize the AnchorScroll class and you're pretty much done!
```javascript
new AnchorScroller({
  checkParent: true // checks if the parent element is an anchor
});
```
You can pass it an optional option object to tweak it's behavior. See all available options [here](#insert_later).

# anchor-scroller
⚓️ Smoothly scroll to `#anchors`

## Features
* ... Scrolls to anchors
* Stops scrolling if the user scrolls
* Doesn't try to scroll past the end

It doesn't sound like much but it's actually really nice 😁
## Usage
1) **Include the library**

Can be done [with NPM](https://github.com/semlette/anchor-scroller/wiki/Using-Anchor-Scroller#as-global-variable) or [from a CDN](https://github.com/semlette/anchor-scroller/wiki/Using-Anchor-Scroller#as-global-variable)

2) **Initialize the AnchorScroll class and you're done!**
```javascript
new AnchorScroller();
```

*[You should check out the more in-depth usage guide](https://github.com/semlette/anchor-scroller/wiki/Using-Anchor-Scroller#options).*

Add Features and adjust Usage
Add Features and adjust Usage