Skip to content

A jquery plugin mimicking the fan-menu EX of the Path App.

Notifications You must be signed in to change notification settings

shevchenhe/jquery-fanmenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery.fanmenu.js

Mimicking Path's Fan Menu UX

Note

This plugin is mostly inspired by nikesh's Pie-Menu, but i refactor the wholly code in a more flexible way!

Usage

  1. link jquery.fanmenu.js on your html document
  2. link jquery.fanmenu.css and custom the style you like
  3. using the dom structure as below

Html

	<div id='testMenu' class="fm_wrap" >
		<a class="fm_btntoggle" href="#" title="Toggle"><i>+</i></a>
		<ul class="fm_list">
			<li><a href="#"><i class="icon-user icon-white"></i></a></li>
			<li><a href="#"><i class="icon-heart icon-white"></i></a></li>
			<li><a href="#"><i class="icon-music icon-white"></i></a></li>
			<li><a href="#"><i class="icon-home icon-white"></i></a></li>
			<li><a href="#"><i class="icon-flag icon-white"></i></a></li>
		</ul>
	</div>

JavaScript

	/* 1 - init the fan menu */
	$("#testMenu").fanmenu({
		'initAngle':0,
		'angleDisplay' : 90,
		'radius':100,
		'hideOnClick':true
	});
	
	/* 2 - close the menu manually */
	$("#testMenu").fanmenu('close');

	/* 3 - open the menu manually */
	$("#testMenu").fanmenu('open');

Demo

Live demo!

About

A jquery plugin mimicking the fan-menu EX of the Path App.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published