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

how to add multiple menu #70

Closed denthemes closed 2 years ago

denthemes commented 3 years ago

how to add multiple menu in single page

somewebmedia commented 3 years ago

Just call HC Off-canvas Nav on each menu.

var Nav1 = new hcOffcanvasNav('#main-nav', {...});
var Nav2 = new hcOffcanvasNav('#sub-nav', {...});
var Nav3 = new hcOffcanvasNav('#sub-sub-nav', {...});
denthemes commented 3 years ago

please provide some demo

somewebmedia commented 3 years ago

Sorry I won't do that. You have the examples, just try it yourself. You can do it, I believe in you 😊

denthemes commented 3 years ago

thank you,..!!! perfectly working...

denthemes commented 3 years ago

multiple menu not working in elementor