2.0.0 • Published 8 years ago

anchor-scroll v2.0.0

Weekly downloads
434
License
MIT
Repository
github
Last release
8 years ago

anchor-scroll

Smooth scrolling for anchor links using scroll-to-element

NPM

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install anchor-scroll --save

Usage

anchorScroll = require("anchor-scroll");

anchorScroll.init({
	updateUrl: true,
	offset: 0,
	ease: 'out-bounce',
	duration: 1500,
	selector: '.smooth-scroll' // default a[href*='#']
});

anchorScroll.destroy();

Dependencies

License

MIT

2.0.0

8 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago