WCircleMenu

jQuery plugin to create a circle Path-like menu

View the Project on GitHub danartinho/WCircleMenu

what is WCircleMenu

WCircleMenu is a jQuery plugin to create circle menu like Path app. WCircleMenu use javascript to calculate transition of elements. It doesn't use CSS easing function.

How To Use

Download and include javascript file in your page. Create the menu using div elements, example :

 <div id="my-menu" class="" style="border-radius: 50%;position: relative; width: 50px; height: 50px; background-color: #999;margin:200px auto;">
    <div class="wcircle-icon">
        <div style="padding: 15px;width: 20px;height: 20px;text-align: center;">
            +
        </div>
    </div>
    <div class="wcircle-menu" style="display:none;">
        <div class="wcircle-menu-item" style="background-color:red;border-radius:50%;padding:15px;width:20px;height:20px;">
            A
        </div>
        <div class="wcircle-menu-item" style="background-color:green;border-radius:50%;padding:15px;width:20px;height:20px;">
            B
        </div>
        <div class="wcircle-menu-item" style="background-color:blue;border-radius:50%;padding:15px;width:20px;height:20px;">
            C
        </div>
        <div class="wcircle-menu-item" style="background-color:yellow;border-radius:50%;padding:15px;width:20px;height:20px;">
            D
        </div>
    </div>
</div>

wcircle-icon class is your menu icon. wcircle-menu class is your menu list. You can replace divs inside these icon and menu div elements with links or images.

Call WCircleMenu on your menu :

$('#my-menu').WCircleMenu();
+

Options

WCircleMenu is customizable with following options

$('#menu_icon').WCircleMenu({
  angle_start : -Math.PI/2,
  delay: 50,
  distance: 100,
  angle_interval: Math.PI/6,
  easingFuncShow:"easeOutBack",
  easingFuncHide:"easeInBack",
  step:15,
  openCallback:false,
  closeCallback:false,
  itemRotation:360,
  iconRotation:180,
});

Next

Events and Triggers

Authors and Contributors

Created by @danartinho.

License

MIT License Copyright (c) 2014 @danartinho Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.