Code Monkey home page Code Monkey logo

rotatingnav's Introduction

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 (audreyfeldroy#1).

rotatingnav's People

Contributors

audreyfeldroy avatar

Watchers

James Cloos avatar xiaogaoboboy@163.com avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.