A hamburger menu (or burger menu) tucks your navigation behind a small icon so visitors can open it when they need it. This article explains when it makes sense to use hamburger menus and how to build them in Readymag step by step.
You can also watch the video tutorial:
When you should use a hamburger menu
A hamburger menu is commonly used on mobile, where there’s not a lot of room for a full navigation bar. If you already have a navigation menu in your desktop version, the same setup is automatically available in the mobile layout. That said, it’s generally recommended to optimize your navigation for smaller screens so everything fits comfortably, and a hamburger menu is a great way to do that.
Hamburger menus are an option if you want a compact menu on mobile, or a minimal, icon-based menu on desktop—you don’t need them on every website. Layouts are independent in Readymag, so you can build one in any layout you choose.
How to build a hamburger menu
Decide where to add it
Choose which layouts will have a hamburger menu before you start, because each layout is edited separately.
- Mobile only (most common). Keep your regular navigation bar on desktop and add the hamburger menu to the mobile layout only.
- Desktop. If you prefer, you can also create a hamburger menu on desktop. Build it directly in the desktop layout, then transfer it to the mobile version.
To make sure visitors can only move between pages through the menu, make sure that your project navigation is set to horizontal and hide the navigation arrows in your project settings.
Choose how to create it
There are two main approaches to building a hamburger menu in Readymag:
- Using a Hotspot widget (simple). These hamburger menus are less configurable, but easier to set up: all you need is one Hotspot widget.
- Using animations (advanced). These hamburger menus are more customizable, but a bit more difficult to set up: they require a strong understanding of animations, triggers and steps, and how to combine multiple widgets.
If you want a quick, clean result, start with the Hotspot. If you want full control over how the menu looks and moves, go with animations.
Option A: Create the hamburger menu with a Hotspot widget
- Add a Hotspot widget.
- Choose “Text” as the content and add your menu options.
- Choose the icon. Customize the Hotspot widget by picking an icon from the icon menu.
- Customize the pop-up menu by adjusting the background, text color, and other options.
- Add links to the menu items.
- Pin the Hotspot widget where you want it to appear. Enable or disable “On All Pages” and “Above Pages” depending on whether you want the hamburger menu to show on every page and stay visible on scroll.
You can also watch the video tutorial here:
Option B: Create it with animations
Readymag has four animation types: On load, Click (Tap), Hover, and Scroll. For a hamburger menu, the most common choice is a Click (Tap) animation (where visitors click/tap the menu icon and the menu opens) with a move or opacity effect.
Choose the effect
Pick an effect before you start, since this decides where you place the menu elements.
- Move effect. Place the background and the menu items beyond the visible part of the project. Then, set the movement parameters for each menu element. Finally, set the menu icon as the trigger for all animations.
- Opacity effect. Place the menu where it should appear, then add an Opacity effect to the menu items and background, setting it to go from 0 to 100. Finally, set a trigger for each of them.
You can also consider the “Hide in editor” toggle. It hides widgets with on-trigger animations from view in the Editor so you can work on the parts of your project that are located behind the menu. These widgets remain visible in the widget bar and also appear in the Editor when you click the animation trigger. The toggle appears only for Opacity animations that start from zero Opacity.
(Optional) Convert an existing desktop navigation bar
If you already have a desktop navigation bar and want to reuse it as a mobile hamburger menu:
- From the left dock, click Devices, then switch to the mobile viewport.
- Copy all of the menu items from your navigation bar.
- Use the eye icon in the widget bar to hide the original desktop menu items in the mobile viewport, or move them outside the mobile layout frame. This prevents disruptions to the desktop version while you work on mobile.
- Edit the copied widgets as you like. You can change both the styling of the text widgets and the text itself.
- Continue with “Build the burger menu” below, skipping the first step (since you’re already in the mobile viewport) and the step for adding menu items (since you already have them). However, you still need to add a background.
Building the hamburger menu
The steps below use the mobile layout as an example, but they work the same way on any layout.
- From the left dock, click Devices, then switch to the mobile viewport.
-
Add the menu icon. Pick an icon using the Shape widget. Using the Position control, set it to appear “On All Pages,” then fix it to the corner closest to the expected final position (for example, the top-right corner if the menu needs to load on the top right corner of the screen). Enable “Above Pages” if you want the icon to stay visible on scroll.
On the Free plan, only the default icons are available. The search option is also disabled on this plan.
-
Create the menu panel. A basic menu panel has two parts: the menu items and a background behind them. The simplest setup is one text widget for all of the menu items and one Shape widget (such as a rectangle) for the background. Once they're added, you can style the text as you like and link each menu item to its corresponding page using links.
-
Pin their position. Using the Position control, apply these settings to the text and the background separately: fix them to the point closest to where the menu should appear (for example, the top-right corner if the menu needs to load on the top-right corner of the screen), set them to the front so they open on top of the page, then enable “On All Pages” so the menu appears everywhere. If the text item moves behind the background, you can rearrange its position from the layers panel.
-
Add Tap animations. Using the Animation control, add a Tap animation to the text and the background separately. Choose the Opacity or Move effect (see the “Choose the effect” instructions above), and set the menu icon as the trigger for both so that the menu opens when visitors tap the icon.
- Set the menu items as triggers. In the Animation control, add the text widget as a second trigger for both the text and the background. That way, when visitors tap a menu item and follow its link, the animation reverses and the menu closes automatically.
- Check the preview. Click the eye icon in the bottom-right corner of the Editor to enter preview mode, where you can test your menu before publishing.
FAQ
Do I need to create a menu for each page separately?
No. Enable “On All Pages” for the icon, the menu items, and the background, and they’ll appear on every page so you only have to build the menu once.
How do I make the hamburger menu stay visible all the time?
Enable the “Above Pages” toggle to keep the icon visible as visitors scroll, and fix the widget to a corner.
How do I make the links highlight when someone hovers over them?
Once you add links to your menu items, click on the text, open the link menu, and click “Edit style.” Then, open the “Hover” tab and choose what should happen to the text link when someone hovers over it.
How do I highlight the link of the page I'm currently on?
First, make sure the menu is fixed on all pages (“On All Pages”); otherwise, this option won't be available. When you’ve added links to your menu items, click on the text, open the link menu, and click “Edit style.” Then, open the “Current” tab and choose what should happen to the text link when the visitor is on that page.
Why is the color of my menu items different from the one I applied?
Check your link styles. When you add links to your menu items, the link style can override the color you chose for the text widget. Most of the time, the “Current” style applies to the link of the page you're on. To check this, click on the text, open the link menu, and click “Edit style.” Then, look through the “Current” and “Hover” tabs and make sure the color there is the one you want. If it isn’t, reset it.
Can I save my menu as a template?
Yes. Group the widgets, or select all of the menu items along with the background and click “Save to presets” in the Attributes panel. You can later find and manage all of your presets in Widgets → Presets → Saved.
Is there a ready-to-go menu option?
Yes. There are two options: one way is to use a hamburger menu preset, which is found in Widgets → Presets → Menus, and customize it to fit your design. Or, use the native Readymag project menu, which you can enable by clicking Preview → Viewer Settings → Project menu. It’s quick to set up, but not customizable. You can learn more about it in the Viewer article.