somewebmedia / hc-offcanvas-nav

JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
https://somewebmedia.github.io/hc-offcanvas-nav/
MIT License
336 stars 82 forks source link

Overlap function #93

Open rockdesignnl opened 1 year ago

rockdesignnl commented 1 year ago

Hi! I was wondering if it was possible to overlap containers without pushing the layer underneath to the right. So that no mather how deep you go you stay in same container width.

Any idea on this?

Cheers!

Danishnaseer commented 1 year ago

Yes you can do that by changing the position of the nav-menu to absolate then fixed, in this case the menu will push open but the side widht of the container will be remain same