GithubHelp home page GithubHelp logo

naaav's Introduction

jQuery naaav

A simple, bare-bones jQuery drop-down menu plugin. Yep, another jQuery drop-down menu plugin :)

This one is a super basic one that's intended to streamline the setting up of a simple drop-down navigation. It sets up event listeners and handlers, along with the in/out delays around a sub-menu's show/hide effect, so you can control the "twitchiness" of it.

This was created to out of a want for a simple drop-down solution that:

  1. Didn't try to do everything
  2. Didn't write any markup or styles
  3. Had the show/hide delay control and not much else

You can pass in your own show/hide functions to completely customise the sub-menu display behaviour.

Getting Started

Download the production version or the development version.

Markup your menu like his:

<ul id="nav">
    <li>
        <a href="#">About</a>
        <ul>
            <li><a href="#">Me</a></li>
            <li><a href="#">You</a></li>
        </ul>
    </li>
    <li>
        <a href="#">Projects</a>
        <ul>
            <li><a href="#">Naaav</a></li>
            <li><a href="#">Crepe</a></li>
        </ul>
    </li>
</ul>

... with CSS that looks like this:

#nav li { float:left; }
#nav a { display:block; }
#nav ul { position:absolute; display:none; } /* this is the key line */
#nav ul li { float:none; }
#nav ul li a { width:150px; }

... and initialise it like this:

<script src="jquery.js"></script>
<script src="jquery.naaav.min.js"></script>
<script>
jQuery(function($) {
  $('#nav').naaav();
});
</script>

Documentation

(Coming soon)

Examples

(Coming soon)

Release History

0.2.0

  • Added Grunt 0.4.0
  • Added unit tests (QUnit)

0.1.0

  • Intial release

naaav's People

Contributors

victornguyen avatar

Watchers

 avatar James Cloos 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.