Responsive Multi Level Vertical Menu
The plugin supports all popular browsers, such as: Opera, Mozilla Firefox, Google Chrome, Internet Explorer, Safari
Menu can be used in Responsive Web Sites for viewing on tablets and smartphones.
You can move the cursor diagonally towards the subcategories.
At the same time an open list of subcategories will not switch or close.
If you quickly move the cursor, the menu will not respond.
The desired category appears only when you hold the cursor on it.
To open / close the category, you can click on the arrow-button.
This feature is very useful on touch devices.
The height of the block with subcategories is limited for convenience. If the items of menu is very much, in the block will be scrolling.
You can control the scrolling using the mouse wheel, using the buttons at the top and bottom part block, as well as using scroll slider.
Menu can have an unlimited number of nesting.
If you wish, you can use ready-made themes and color schemes menus.
To do this, we created a constructor of styles.
If the height of the sub-categories more than specified in the parameter, the sub-categories are aligned with the upper edge of the menu
To work the plugin the necessary files you must place the files listed below on your server
After this you need to connect these files inside the tag "head" of your site
Typically, style files placed in the folder "css", and script files - in a folder "js", but your folder structure may be another.
If you have an another directory structure, make sure you set the correct path to the files.
Once you have written the connection of necessary files, plugin needs to be initialized.
For this purpose, in tag "head" need to add this code below the code of connection.
For create the code of the menu, you can simply take the most standard and the most spread multi-level menu structure.
For its main parent element you need set the class, wich you assigned in initialization, to plugin to know which menu needed to convert.
Option | Default value | Datatype | Description |
---|---|---|---|
subItemsMax | 7 | Number | If the Number of items sub categories more than the set value, the unit with sub items will be pressed against the upper edge of the menu, otherwise it will be on par with the parent. If you do not need adherence to the upper side, set this value to 999 It may take the values: any positive number |
delay | 300 | Number | If you quickly move the cursor, the menu will not respond. The desired category appears only when you hold the cursor on it. It may take the values: any positive number, ms |
outTimeout | 600 | Number | The time delay before closing the menu when cursor out. It may take the values: any positive number, ms |
responsive | true | bolean | This option allows to adapt the menu for mobile devices It may take the values: true or false |
maxHeight | auto | string / number | This parameter sets the maximum height of the blocks with items. If too many items then scrolling appears. If you do not need scrolling, set the value of this parameter in 9999 It may take the values: 'auto' or any positive number |
destroy() |
Removes all the functionality of menu. It returns the item in the condition before the initialization of the plug-in $('.your_class').liShopen('destroy'); |
Responsive Multi Level Vertical Menu