Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 799 Bytes

File metadata and controls

13 lines (7 loc) · 799 Bytes

SmoothAnchors

Animated scrolling for internal anchor links

How to use it

Just include the jQuery library and SmoothAnchors.js, then add $().SmoothAnchors(); to your $(document).ready() function.

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="SmoothAnchors.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $().SmoothAnchors();
    });
</script>

Demo

Here's a demo of the plugin in action: http://alextrob.github.io/SmoothAnchors/