Skip to content

Matthewnie/responsive-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Responsive Menu

This responsive menu script requires jQuery and modernizr

Desktop

On mouseover of level 1 items a class of hover is added to the li

The dropdown is positioned in the center of the parent

If the dropdown goes off screen to the right or left its position is set to 0 for necessary side.

Mobile

On Mobile .js-toggle-nav opens and closes the navigation menu

All level 1 items with children get a .js-toggle-children button added after the anchor, This allows 2nd level items to be exposed while keeping 1st level items click able

Releases

No releases published

Packages

No packages published