Coder Social home page Coder Social logo

zikes / circle-menu Goto Github PK

View Code? Open in Web Editor NEW
276.0 18.0 68.0 244 KB

A circular menu jQuery plugin, inspired by the Path application for Android and iOS

Home Page: http://zikes.github.com/circle-menu/

License: Do What The F*ck You Want To Public License

JavaScript 100.00%

circle-menu's Introduction

Circle Menu

A customizable jQuery plugin that emulates the menu in the Path application. Includes a selection animation and various animation options for opening and closing the menu.

See it in action.

Read the Documentation.

Compatibility:

Fully Working:

  • Chrome
  • Firefox
  • Android
  • Opera

Known Issues:

  • IE 9
    • Does not include CSS animations for open/close, as it does not support CSS transitions.

circle-menu's People

Contributors

clemens-panda avatar zikes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

circle-menu's Issues

Align

I have am trying to align horizontal the items but it seams that the calculations forces to the items not be align.

Any simple change to make this happen?

how to reset the direction of menu to another type?

how to reset the direction of menu to another type?
at the beginning:
$("#circleR").circleMenu({
circle_radius : 85,
item_diameter : 40,
direction : 'left-half',
trigger : 'click',
open : function() {
console.log('menu opened');
},
close : function() {
console.log('menu closed');
},
init : function() {
console.log('menu initialized');
},
select : function(evt, index) {
console.log(evt, index);
}
}).on('circleMenu-open', function() {
console.log('menu opened 2');
});

after this, in some event I would like to change the direction to 'bottom-right' like this but it fail to change it:

$("#circleR").circleMenu({
circle_radius : 85,
item_diameter : 40,
direction : 'bottom-right',
trigger : 'click',
open : function() {
console.log('menu opened');
},
close : function() {
console.log('menu closed');
},
init : function() {
console.log('menu initialized');
},
select : function(evt, index) {
console.log(evt, index);
}
}).on('circleMenu-open', function() {
console.log('menu opened 2');
});

Overlapping issue

Hi!

I've got an issue with a component who has a z-index which is higher that the item menu. Can you make the z-index configurable so that we can choose it with an option? And i think it would be better to put a z-index equal to the value of the first item z-index -1 like below.

li:first-child{
z-index: 1000; //configurable
}
li{
z-index: 999; // first-child z-index - 1
}

http://codepen.io/KiGniark/pen/jPdoaE (the problem is there)

Thanks for this plugin, it's awesome!

Menu items appears quickly after hiding and black browser area in Chrome on OSX

After the items are hidden when the menu is closing, the menu items appears quickly before they are completely invisible as shown in the following screen recording.

Another thing which I am uncertain if it should be reported as a separate bug is that the browser area "flashes" and becomes black for a moment when an animation begins or ends.

I collected these bugs in a screen recording, I hope this gives a better idea on how to reproduce them.
Screen recording contains annotations on what is happening.

http://www.youtube.com/watch?v=N5Ow_bvcAzM

Open Animations Not Working in Opera

Turns out that Opera does not apply the CSS transition animation to visibility quite like other browsers do. Whereas other browsers would make it instantly visible at the start of the transition and then perform the animation Opera instead animates and then makes visible.

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.