With slimMenu, you'll no longer struggle with media queries to create responsive menus, or any other heavy plugins to create multi-level nested menus. slimMenu does both job for you and it's only 5KB(2.5KB minified)!
Download .zip Download .tar.gz View on GitHub(Tested on following browsers and confirmed that the slimMenu is working.)
Add dist/css/slimmenu.min.css to the head of your document:
<link rel="stylesheet" href="slimmenu.min.css" type="text/css">
Add dist/js/jquery.slimmenu.min.js after jQuery plugin and before closing body tag.
<script src="jquery.slimmenu.min.js"></script>
Create your navigation menu using an ordered list and add slimmenu class:
<ul id="navigation" class="slimmenu">...</ul>
Initilalize the plugin:
$('#navigation').slimmenu(
{
resizeWidth: '800',
collapserTitle: 'Main Menu',
animSpeed: 'medium',
easingEffect: null,
indentChildren: false,
childrenIndenter: ' '
});
Optional Add easing plugin after jQuery plugin and before closing body tag if you want to use easing effects.
<script src="**PATH_TO_PLUGIN**/jquery.easing.min.js"></script>
If you need help using slimMenu, have a suggestion or idea, or have found a bug, please create an issue by going to issues page of github repository.