jquery-smoothscroller
Advanced tools
Comparing version
@@ -9,3 +9,3 @@ var gulp = require('gulp'); | ||
.pipe(rename('smoothScroller.min.js')) | ||
.pipe(gulp.dest('./')); | ||
.pipe(gulp.dest('.')); | ||
}); |
{ | ||
"name": "jquery-smoothscroller", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A jQuery plugin to provide a smooth scrolling effect.", | ||
"main": "./smoothScroller.min.js", | ||
"main": "smoothScroller.min.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ }, |
# jQuery-smoothScroller | ||
[](https://nodei.co/npm/jquery-smoothscroller/) | ||
SmoothScroller is a simple jQuery plugin to add a smooth scrolling transition effect to your page. It is extremely small being under a 1KB in size. When initialized it will detect all the anchor tags with id references and create a smoothscroll animation to the relevant tag. | ||
@@ -7,6 +9,11 @@ | ||
``` | ||
$ npm install --save jquery-smoothscroller | ||
$ npm i -S jquery-smoothscroller | ||
``` | ||
Then add it to your page or require it in your JS. | ||
Then add it to your page: | ||
``` | ||
<script src="node_modules/jquery-smoothscroller/smoothScroller.min.js"></script> | ||
``` | ||
To initialize: | ||
@@ -13,0 +20,0 @@ ``` |
22144
0.94%31
29.17%