Skip to main content

How to create a hamburger menu

Learn how to display a navigation menu on desktop while letting mobile and tablet users show or hide it by tapping a hamburger icon.

A hamburger menu is a compact navigation menu mainly used on small screens like mobile devices. It appears as an icon made of three stacked horizontal lines, and clicking it expands the hidden menu.

This article explains how to show a navigation menu that's always visible on the Default and Small (desktop size) breakpoints as a hamburger icon on Mobile and Tablet sizes.

Point: Responsive design in Studio.Design

In Studio.Design, you create responsive designs by adjusting the style for each screen width (breakpoint) based on a single page design.​
You can change the layout, appearance, and position of boxes and text per breakpoint, but the content of images and text, as well as the grouping structure, are shared across breakpoints.​

For more on how responsive design works and related features, check out these articles:

Before you start: Create your navigation menu

This article only covers how to build a hamburger menu using per-breakpoint visibility settings.

Please create the navigation menu that will appear on the Default and Small (desktop size) breakpoints in advance.


Create a hamburger menu

Step 1. Hide the navigation menu

Set the navigation menu to be hidden on tablet and smaller screen sizes.

Step 2. Place the hamburger icon

Add the hamburger menu icon that will appear on tablet and mobile.

  1. In the breakpoint bar on the toolbar, select [Tablet]. Confirm that the navigation menu you created for the Default (desktop size) is hidden.

  2. On the header in the canvas, add an icon box and change it to a hamburger menu icon.

  3. Select the icon you placed and open the Layers panel.

Step 3. Create the menu page as a modal

Create the menu that appears when the hamburger icon is clicked as a modal.

  1. Select Modal when adding a page.

    Screenshot: Adding a modal.
  2. Inside the modal you created, design the menu by placing boxes, text, buttons, and other elements for navigation.

Tip: Add an entrance animation to the modal

If you want to add motion when the modal appears, use conditional styles.

  1. Select the entire modal or the top-level layer.

  2. In the right panel, click the [Conditional Style] button, then choose [On Appear] from the [Animation] menu.

  3. Set up the entrance animation using a template or a custom setting.

Step 4. Link the hamburger icon to the modal menu

Connect the hamburger icon to the modal menu you created with a link.

  1. Select the hamburger menu icon on the canvas.

  2. Check the behavior in Preview.


Set up a hamburger menu using section parts

Menus in section parts already have responsive design set up, and a hamburger menu is built in.

  1. In the left panel, open the Add panel.

  2. Open the [Sections] tab and choose a section menu from either Header or Footer depending on your needs. Click [Show All] to see the full list of available section parts.

  3. Edit the box elements inside the added section part as needed.

  4. Set up in-site links on each box that serves as a menu item.

  5. Check the display in Live Preview.

  6. If you're editing a published site, update the site to apply the changes to the live version.


hamburger hamburger menu mobile menu hanger menu hanger burger menu burger menu hamburger icon menu button modal menu menu modal

Did this answer your question?