Skip to content

audreyfeldroy/rotatingnav

Repository files navigation

rotatingnav Build Status Dependency Status devDependency Status

A nav menu that rotates through infinite links, allowing for more nav menu links than can normally fit.

Screenshot of rotatingnav

The above is just a screenshot. For a live demo, see http://bl.ocks.org/audreyr/6151852. In the demo:

  • To advance forward: click > or press f
  • To go backward: click < or press b

You can also see a styled version at the top of the new djangopackages.com, which looks like this:

Screenshot of rotatingnav on Django Packages

Usage

Add this bit of JS:

$(function() {
	$(".rotatingnav").rotatingnav({
    panelCount: 8,
    activeCount: 4
	});
});

As for the corresponding HTML, see demo/index.html for an example of how to define the HTML for a nav menu with tons and tons of links.

License

MIT. http://audreyr.mit-license.org

Contribute

Contributions that make this better are more than welcome!

I particularly could use help implementing mobile support (#1).

About

A JS/CSS rotating navigation menu.

Resources

Stars

Watchers

Forks

Packages

No packages published