Socket
Book a DemoInstallSign in
Socket

jquery.smoothscroll.js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery.smoothscroll.js

jQuery plugin to animate scrolling to anchor links

1.0.6
latest
Source
npmnpm
Version published
Weekly downloads
12
140%
Maintainers
1
Weekly downloads
 
Created
Source

jquery.smoothscroll.js

GitHub release npm license

jQuery plugin to animate scrolling to anchor links

Downloading or installing via npm

ZIP ZIP

or

$ npm install --save-prod jquery.smoothscroll.js

Loading jQuery and jquery.smoothscroll.js

<script src="https://code.jquery.com/jquery.min.js"></script>
<script src="/path/to/jquery.smoothscroll.min.js"></script>

Webpack or Browserify

global.$ = global.jQuery = require('jquery');
require('jquery.smoothscroll.js');

Usage

$(function() {
  $('a[href*="#"]').smoothscroll();
});

Options and Settings

$('a[href*="#"]').smoothscroll({
  duration: 400,
  easing: 'swing',
  offset: 0,
  hash: true,
  focus: true,
});

Kite @ixkaito

License

MIT

Keywords

jQuery

FAQs

Package last updated on 23 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.