mathiasbynens / Jquery Smooth Scrolling
Smooth anchor scrolling plugin for jQuery.
Stars: ✭ 72
Programming Languages
javascript
184084 projects - #8 most used programming language
Smooth Scrolling jQuery Plugin
Notice
Nowadays you should really use scroll-behavior: smooth;
in CSS instead of a JavaScript solution.
Demo & Examples
https://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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].