An open API service indexing awesome lists of open source software.

https://github.com/evermade/menu-toolkit

Accessible menu library
https://github.com/evermade/menu-toolkit

Last synced: 11 months ago
JSON representation

Accessible menu library

Awesome Lists containing this project

README

          

# Menu Toolkit

Menu Toolkit provides functionality to help create accessible and usable menus. Toolkit provides JavaScript functions to create the menu and it's up to you to style it and extend it.

## Menu from HTML

**Demos**

* ["Click" interaction](https://evermade.github.io/menu-toolkit/)
* ["Hover" interaction](https://evermade.github.io/menu-toolkit/hover.html)
* [Animating sub menus](https://evermade.github.io/menu-toolkit/animation.html)

Function `menuFromHTML` adds accessible enhancements and events for WordPress navigation menus (although you can use it for different menus).

Two different interaction modes are supported:

1. `click`: sub menus are opened only on click
2. `hover`: sub menus open also with hover

Things to note:

* This function only handles the `