Off-canvas menu

Off-canvas menu

This tutorial shows how to add a ready-made off-canvas menu in Mosaic, connect it to your hamburger icon, and adjust its width, overlay, animation and close options so it matches the rest of your site.

Add an off-canvas menu to your WordPress site in a few minutes with Mosaic’s pre-made designs. They work out of the box on desktop, tablet, and mobile, and the same slide-in panel works for more than navigation, like contact details or a featured image.

Notice

Want a fully custom one? Build a full-screen menu with an icon toggle and a frosted glass background from scratch in the Full-screen menu tutorial.

Add the off-canvas menu

Open your master

Open the template editor and go to the master that holds your site’s navigation.

Add a Library element

Open the Add panel and drop a Library element into the master.

Pick a pre-made design

In the Library, go to Parts, then Off-canvas, and drop in the design you like.

Get to know its parts

The off-canvas menu is built on the Modal element. The window holds your content, and the overlay underneath dims the rest of the page. The close icon has a click interaction that closes the modal.

Connect it to your menu icon

Go back to the navbar

In the preview, the menu doesn’t open yet, neither on page load nor when you click the hamburger icon. Close the interaction you were looking at, leave the menu’s scope, and go back to the navbar.

Add a click interaction to the hamburger icon

Select the hamburger icon, open the Interaction tab on the right, and add a Click interaction.

Open the modal on click

Select the modal in the Navigator, then add the Modal action and set it to Open.

Preview it

Click the hamburger icon in the preview, and the menu slides in. The close icon closes it again, and it works the same way on mobile.

Make it your own

Change the window width

Select the window, then change its max width on the Style panel to control how wide the menu gets.

Restyle the overlay

Select the overlay and change anything you need, like its background color, or add a blur so the page behind it softens.

Fine-tune the animation

Open the interaction on the modal. Increase the animation’s duration to make the window slide in more slowly, or animate a different property altogether.

Choose what closes it

On the Settings tab, choose whether a click on the overlay or the Escape key closes the menu. Turn both off if only a dedicated button should close it.

Use it beyond menus

The same off-canvas panel is useful anywhere you want extra content one click away. On a service website, like a dental clinic, it can show contact details instead of sending visitors to a separate contact page. The pre-made designs range from playful to elegant, some include images, and some have no menu items at all, so you can use one simply to show off a piece of content.

Result

You now have a working off-canvas menu that slides in when visitors click the hamburger icon, closes the way you choose, and works on every device. You’ve also made it your own, with the width, overlay, and animation set the way you want them.

Last updated: November 11, 2026

Still have more questions? Let us help!

Your cookie preferences

We use cookies to improve your experience, analyze traffic, and personalize content. By clicking "Accept all" you agree to storing them on your device. Read our privacy policy.