Blueprint-SlidePushMenus
Blueprint-SlidePushMenus copied to clipboard
Close Menu if click menu item
At first what is classie.js is it like jquery? or do you have develop it. is it possible to hide the menu if an menu item clicked?
Classie provides a series of class helper functions, like checking for a class, adding a class, removing a class, or toggling a class. Of course, this can all be done using JavaScript, but Classie just makes it a little bit easier. https://github.com/desandro/classie
If you'd like to hide the menu on a menu item click, simply fire off the several Classie toggles upon clicking a menu item, but wouldn't clicking a menu item take you to another page anyways, thus closing the menu? Unless you're doing some AJAXy stuff or linking to an anchor or something.