Hamburger Menus

Placeholder Picture
Placeholder Picture
Placeholder Picture

Hamburger Menus

Sometimes it can be hard to make a menu close after it has been clicked on, especially if the viewport has been narrowed so that the 'hamburger' is the icon to open it with, and if there is a link going to a section further down on the same page. This has been remedied here with a bit of java script. The menu item 'anchor' is such a link, and when clicked on, it will take you to an image on this page, below these comments. Try it with a narrow viewport!

To edit the menu with the black background, find the container with the class name .dark.

The menu has a width limitation of 1200px which can be changed - or removed.

The third download option is more or less the same menu, but made as a 'hamburger' menu for the whole width of a page. The icon will just be sitting unobtrusively up in the right corner (or left corner, if you prefer).

This variant is especially suited for a 'single page' website. The containers below the menu are there to demonstrate how to make the links. Those containers can be edited and styled in whichever way you want.

These menus even work in IE11.

Placeholder Picture

Download this component for 'mobile-up'

Placeholder Picture

Download this component for 'desktop-down'

Placeholder Picture

Download the full-page hamburger.
It can be used 'both ways'.

The image is a demo for the anchor in the menu.

Placeholder Picture