Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Smooth anchor scrolling plugin for jQuery.
JavaScript
tree: fb8b76df8c

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitattributes
README.md
jquery.smoothscroll.js
jquery.smoothscroll.min.js

README.md

Smooth Scrolling jQuery Plugin

Demo & Examples

http://mathiasbynens.be/demo/smooth-scrolling

Example Usage

Simple – Inside entire document

Find all links to anchors in the same document, and make them scroll smoothly when clicked:

$('html').smoothScroll();

Simple – Inside a specified element

Find all links to anchors in the same document inside #content, and make them scroll smoothly when clicked:

$('#content').smoothScroll();

Specifying animation speed

$('html').smoothScroll(300);

Mathias

Something went wrong with that request. Please try again.