FrDH / mmenu-light

The (extremely) lightweight alternative to the mmenu.js plugin for creating off-canvas mobile menus.
185 stars 69 forks source link

How to switch between a fixed navigator and off-canvas drawer #58

Closed kehhf closed 2 years ago

kehhf commented 3 years ago

Is there anyway to design a navbar shown in two ways? It will be shown as fixed navigator when screen is wider, and will be shown as off-canvas drawer when screen is narrow? I have tried to use two menus:

But these are not working...

FrDH commented 3 years ago

Yes, try the mediaQuery option for the offcanvas method: https://mmenujs.com/mmenu-light/tutorial.html