satoshi-m8a / pretty-drop

jQuery plugin for smooth mega drop down that considered mouse coordinate context.

Home Page:http://satoshi-m8a.github.io/pretty-drop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pretty Drop

jQuery plugin for smooth mega drop down that considered mouse coordinate context.

Demo

here

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script>
<script src="dist/pretty-drop.min.js"></script>
<script>
jQuery(function($) {
   $("#prettyDrop").prettyDrop({
          active: function (menu) {
              menu.addClass("active");
          },
          deactive: function (menu) {
              menu.removeClass("active");
          },
          menuSelector: ".menu-item",
          delay: 100, // ex: when entry angle is 30 degree, delay is 100 * 30 millisecond
          defaultDelay: 300, // when nothing needs to be delay. entry angle is 0 degree
          track: 5,
          closeDelay: 500, //when the mouse leaves from entire menu.
          maxDelay: 1800
      });
});
</script>
<div class="h-menu" id="prettyDrop">
    <ul>
        <li class="menu-item">
            <a href="#">
                Pretty Menu1
            </a>
            <div class="sub-menu">
                <h3>Sub Menu1</h3>
            </div>
        </li>
        <li class="menu-item">
            <a href="#">
                Pretty Menu2
            </a>
            <div class="sub-menu">
                <h3>Sub Menu2</h3>
            </div>
        </li>
        <li class="menu-item">
            <a href="#">
                Pretty Menu3
            </a>
            <div class="sub-menu">
                <h3>Sub Menu3</h3>
            </div>
        </li>
    </ul>
</div>

Documentation

(Coming soon)

Release History

(Nothing yet)

About

jQuery plugin for smooth mega drop down that considered mouse coordinate context.

http://satoshi-m8a.github.io/pretty-drop


Languages

Language:JavaScript 94.3%Language:CSS 5.7%