1.0.6 • Published 8 years ago

anchor.js v1.0.6

Weekly downloads
40
License
GPL-2.0+
Repository
github
Last release
8 years ago

anchor.js

This small but might really useful jQuery Plugin brings in an animation to all native section link and smoothly jumps at an element anywhere on your page.

###Demo Check out a short example of the anchor.js: http://jsfiddle.net/psrRQ/4/

###Installation Just include the anchor.js file and also make sure that jQuery is defined. Then, call DOM elements by using your preferred selector like in the example below.

<script type="text/javascript" src="path/to/your/anchor.js"></script>
<script type="text/javascript">
$(function () {
    $('a[href*=#]').anchor({
        foo: 'bar'
    });
});
</script>
1.0.6

8 years ago

1.0.5

10 years ago