Earlier quoted context omitted.
"I cannot think of a single instance of a popular web application that uses a click and hold mechanic of any kind." * Scrollbar thumbs, Drag and drop (gmail attachments, google map streetview guy), Drag to reposition, Rubber band selection (everywhere) * Drag blue dotas to modify text selection (iOS)
Drag and drop implies you're dragging one thing to another and then releasing. This is not the same as clicking, holding, and having something else you then have to move your cursor to appearing. I should have been more specific. I cannot think of a single instance of a popular web application or site that uses a click and hold mechanic to navigate or edit.
Creating a Radial Menu in CSS
31–40 of 80 posts
Re: Creating a Radial Menu in CSS
#32Earlier quoted context omitted.
The reason of the post is not the circular menu itself but the fact that it's entirely made in CSS. I think this is really impressive.
I'm genuinely curious: why is that exciting? I don't know a huge amount about the web stack.
Re: Creating a Radial Menu in CSS
#33Great demo. Not to nitpick, but the original poster's question was about a 3 item menu. It would be nice if the CSS allowed arbitrary number of elements. Right now, deleting one of the 5 links seems to break the design. Seems like something SASS could handle.
I'm not a webdev, but the code says: /* * rotate each slice at the right angle = (A/2)° + (k - (n+1)/2)*A° * where A is the angle of 1 slice (30° in this case) * k is the number of the slice (in {1,2,3,4,5} here) * and n is the number of slices (5 in this case) * formula works for odd number of slices (n odd) * for even number of slices (n even) the rotation angle is (k - n/2)*A° * * after rotating, skew on Y by 90°-…
Re: Creating a Radial Menu in CSS
#34I remember an article in Dr. Dobbs hailing pie menus as the future of user interfaces. It was the early 90's. I have always thought they were a great idea. Currently Microsoft Office One Note uses them. Here's a list of references for pie menus (the Dr. Dobbs article is cited): http://www.cs.cornell.edu/boom/2001sp/bronevetsky/Circle%20M... In fairness to Dr. Dobbs, they also hailed hypertext as the future about that…
Every circular menu implementation i've seen still suffers from low command "density", lack of space for text, difficult to use sub-menus, maintaining predictable ordering, and, with touch UIs, commands hidden by the user's own finger. I really want them, but squares are easier to work with.
Re: Creating a Radial Menu in CSS
#35Earlier quoted context omitted.
Drag and drop implies you're dragging one thing to another and then releasing. This is not the same as clicking, holding, and having something else you then have to move your cursor to appearing. I should have been more specific. I cannot think of a single instance of a popular web application or site that uses a click and hold mechanic to navigate or edit.
Drop-down menus.
Re: Creating a Radial Menu in CSS
#36FWIW, it breaks if you use Tab to cycle through the links.
.button:focus + .tip, .tip.open, .tip:has(a:focus)
One line of jQuery should solve: $('.tip a').focus(function(){ $('.tip').addClass('open'); }).blur(function(){ $('.tip').removeClass('open'); });Re: Creating a Radial Menu in CSS
#37Earlier quoted context omitted.
I'm not a webdev, but the code says: /* * rotate each slice at the right angle = (A/2)° + (k - (n+1)/2)*A° * where A is the angle of 1 slice (30° in this case) * k is the number of the slice (in {1,2,3,4,5} here) * and n is the number of slices (5 in this case) * formula works for odd number of slices (n odd) * for even number of slices (n even) the rotation angle is (k - n/2)*A° * * after rotating, skew on Y by 90°-…
...so SASS?
Re: Creating a Radial Menu in CSS
#38Re: Creating a Radial Menu in CSS
#39Earlier quoted context omitted.
Drop-down menus.
Dropdown menus are typically 'mouse-over and move mouse', not 'click-and-drag'
Re: Creating a Radial Menu in CSS
#40Earlier quoted context omitted.
I'm genuinely curious: why is that exciting? I don't know a huge amount about the web stack.
Usually JavaScript would be used to create the flyout menu effect like you see in the Dabblet. But since it's done in CSS3 any browsers which support those standard properties can work - no need for any JS code. It's just a neat workaround and very impressive IMO.