jquery.arbitrary-anchor.js Github Demo

arbitrary anchors for any element on your page

View URL and
Click link below to try.

A little jquery magic goes
a long way.

With jquery.arbitrary-anchor.js , you can easily create useful and neat dynamic anchor scrolling by simply adding a jQuery/CSS selector after the hash (#) in your page's URL. This plugin extends the normal anchor functionality, that is, an anchor tag with a name value attribute will still get scrolled to as normal. The same goes for an element with an ID which matches the hash. This little plugin will take care of everything else.

Fork on Github

use any css / jquery selector after the hash to scroll to that element

it's really quite simple.

Credits

Made with love in sunny southern California by Brian Gonzalez.
Anchor designed by Kyle Tezak from The Noun Project
Photos borrowed from Flickr.

Let your imagination
run free

Here's a few more.

Say hello.