From dcfb172704f3afb68a30425029ec834be2883274 Mon Sep 17 00:00:00 2001 From: bt Date: Sat, 8 Jun 2024 13:22:19 -0400 Subject: More content porting, on-going markdown changes for lowdown support --- build/hamburger-menu-alternative/index.html | 112 ++++++++++++++++++---------- 1 file changed, 71 insertions(+), 41 deletions(-) (limited to 'build/hamburger-menu-alternative') diff --git a/build/hamburger-menu-alternative/index.html b/build/hamburger-menu-alternative/index.html index 1643de1..87f3414 100644 --- a/build/hamburger-menu-alternative/index.html +++ b/build/hamburger-menu-alternative/index.html @@ -1,64 +1,84 @@ - + Using Hamburger Menus? Try Sausage Links - - + + +
-

Using Hamburger Menus? Try Sausage Links

+

Using Hamburger Menus? Try Sausage Links

+

2019-06-14

-

When designing medium to large sized menu navigations on the mobile web the default go-to, for some time now, has been hamburger menus. This isn't necessarily a bad thing, but there is a simpler alternative for certain use cases.

-

Before we get into the nitty-gritty details (and a simple demo) of the sausage link concept, let's take a quick look at the pros and cons of hamburger menus.

-

Hamburger Menus

-

The concept of the hamburger menu isn't horrible by any means, in fact it does solve a lot of problems from a visual perspective. Unfortunately, that doesn't mean it exists without some annoying flaws.

-

The Good

+ +

When designing medium to large sized menu navigations on the mobile web the default go-to, for some time now, has been hamburger menus. This isn’t necessarily a bad thing, but there is a simpler alternative for certain use cases.

+ +

Before we get into the nitty-gritty details (and a simple demo) of the sausage link concept, let’s take a quick look at the pros and cons of hamburger menus.

+ +

Hamburger Menus

+ +

The concept of the hamburger menu isn’t horrible by any means, in fact it does solve a lot of problems from a visual perspective. Unfortunately, that doesn’t mean it exists without some annoying flaws.

+ +

The Good

+ -

The Bad

+ +

The Bad

+ -

As you can see, the bad points listed above aren't that bad. I see them more as minor potholes along the UX journey for your end-users. A good portion of hamburger menu examples in the wild work perfectly fine and should remain as they are. However, those outliers who abuse or misuse the hamburger concept should be introduced to sausage links.

-

Sausage Links

-

I should start by mentioning that this concept is far from new. There are a good number of websites that already implement this menu type in some form or another. The point of this post isn't to blow your mind with some new-never-thought-of navigation design. I'm just trying to bring awareness to another available menu concept.

-

Enough chit-chat, let's take a look at sausage links in action:

+ +

As you can see, the bad points listed above aren’t that bad. I see them more as minor potholes along the UX journey for your end-users. A good portion of hamburger menu examples in the wild work perfectly fine and should remain as they are. However, those outliers who abuse or misuse the hamburger concept should be introduced to sausage links.

+ + + +

I should start by mentioning that this concept is far from new. There are a good number of websites that already implement this menu type in some form or another. The point of this post isn’t to blow your mind with some new-never-thought-of navigation design. I’m just trying to bring awareness to another available menu concept.

+ +

Enough chit-chat, let’s take a look at sausage links in action:

+

Scrolling menu with sausage links

+

Live CodePen Example

-

The above CodePen adds a good amount of visual design fluff, so let's take a look at the bare minimum HTML & CSS needed to accomplish this menu:

-
<nav class="sausage-links">
-    <ul>
-        <li><a href="">Homepage</a></li>
-        <li><a href="">Categories</a></li>
-        <li><a href="">Filter Properties</a></li>
-        <li><a href="">Edit Optional Tags</a></li>
-        <li><a href="">Research Papers</a></li>
-        <li><a href="">Contact Our Team</a></li>
-    </ul>
-</nav>
-
-
/* Sausage Links Nav Container */
+
+

The above CodePen adds a good amount of visual design fluff, so let’s take a look at the bare minimum HTML & CSS needed to accomplish this menu:

+ +
<nav class="sausage-links">
+    <ul>
+        <li><a href="">Homepage</a></li>
+        <li><a href="">Categories</a></li>
+        <li><a href="">Filter Properties</a></li>
+        <li><a href="">Edit Optional Tags</a></li>
+        <li><a href="">Research Papers</a></li>
+        <li><a href="">Contact Our Team</a></li>
+    </ul>
+</nav>
+
+
+
+/* Sausage Links Nav Container */
 .sausage-links {
     position: relative;
 }
 
-/* The left and right "faded" pseudo elements */
+/* The left and right "faded" pseudo elements */
 .sausage-links:before, .sausage-links:after {
-    content: '';
+    content: '';
     height: calc(100% - 2em);
     pointer-events: none;
     position: absolute;
@@ -75,7 +95,7 @@
     left: 0;
 }
 
-/* Basic flexbox to prevent items from breaking lines */
+/* Basic flexbox to prevent items from breaking lines */
 .sausage-links ul {
     display: flex;
     flex-wrap: nowrap;
@@ -91,26 +111,36 @@
     display: inline-block;
 }
 
+

Pretty simple, eh?

+

Update: Thanks to @dany0w for pointing out that I forgot to include -webkit-overflow-scrolling: touch for momentum scrolling on iOS.

-

The Good

+ +

The Good

+
  • Extremely minimal amount of CSS required
  • -
  • Screen reader / keyboard-only safe
  • +
  • Screen reader / keyboard-only safe
  • Zero JavaScript needed
  • No need for hacky hidden radio inputs for toggling parent containers etc.
  • Users can see first few available options without any interaction
-

The Bad

+ +

The Bad

+
  • May not look the most visually appealing for certain project designs (ugly scrollbar in some instances)
  • Better suited for small to medium menu lists compared to massive sitemaps
  • -
  • Without proper fade / cut off visual cues, users may not understand they can scroll
  • +
  • Without proper fade / cut off visual cues, users may not understand they can scroll
-

So, should I use hamburger menus or sausage links?

-

That really depends on your project or overall mobile design (I know, such a helpful answer). I'm sure there are even a few use cases where it would make sense to have sausage links within a toggle-based hamburger menu. The menu possibilities could be endless!

-

That's it. I hope I've inspired you to try out sausage links in the near future or at least made you think more deeply about mobile navigation design!

-

...is anyone else really hungry now?

+ + + +

That really depends on your project or overall mobile design (I know, such a helpful answer). I’m sure there are even a few use cases where it would make sense to have sausage links within a toggle-based hamburger menu. The menu possibilities could be endless!

+ +

That’s it. I hope I’ve inspired you to try out sausage links in the near future or at least made you think more deeply about mobile navigation design!

+ +

…is anyone else really hungry now?