/pretty-drop

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

Primary LanguageJavaScript

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)