Overlay Main Menu Hide your main menu in a beautiful overlay.
To add a persistent overlay main menu simply set/remove the following classes on the following elements:
-
1
.navbar-toggler: remove any.hidden-*-*classes so it shows at all screenwidths. -
2 Also ensure
.navbar-togglerhas the following attributes set:data-toggle="overlay"&data-target="#overlay-menu". NOTE: you can use any link to trigger the overlay it doesn't have to be the.navbar-togglerelement. -
3 Anywhere within page add your overlay menu HTML, we added ours in the footer of our page. The overlay should have the class or ID of the
data-targetattribute.
Since AppStrap version 3.1 the overlay now requires the classoverlay-fp.data-dismiss="overlay"can be added to any link or button element within the overlay to close it when clicked.
Options
Effects
- Default (fade)
-
Slide Down (Add
.slide-downclass to.overlayelement) -
Slide Up (Add
.slide-upclass to.overlayelement)
Styles
- Default (dark)
-
White (Add
.overlay-whiteclass to.overlayelement) -
Primary (Add
.overlay-primaryclass to.overlayelement)
Styles and effects can be combined.