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

Multiple type of levelOpen #54

Open flqtdc opened 3 years ago

flqtdc commented 3 years ago

Hey, thanks for the awesome menu function.

I just wondering if this would be possible, to control the levelOpen which it can be set based on needs.

For example the first layer to be open as expand, the second layer to be open as overlap.

Looking forward for this solutions.

somewebmedia commented 3 years ago

Currently that is not possible. I'll have to think about if that would be possible for implementation.

flqtdc commented 3 years ago

Since the levelOpen have few option, it might have a chance to utilise it.

Just an idea which it might be useful for other UX-ers as well, LOL.

I did try to modified it, somehow the expand function is not working(I'm bad with JS actually, haha).

It would be great if you can consider to enhance levelOpen menu function to the next level.

Cheers.