Fullscreen introduction

By default, the menu will fill up 80% of the available width (or height when opened from the top/bottom), with a min-width of 140px and a max-width of 440px (140px/880px when opened from the top/bottom). If you want it to fill up 100%, include the "fullscreen" extension .css file and add "fullscreen" to the extensions option.

<head>
   <script src="path/to/jquery.js"></script>
   <script src="path/to/jquery.mmenu.js"></script>
   <link href="path/to/jquery.mmenu.css" rel="stylesheet" />
   <link href="path/to/jquery.mmenu.fullscreen.css" rel="stylesheet" />
   <script>
      $(document).ready(function() {
         $("#my-menu").mmenu({
            extensions: ["fullscreen"]
         });
      });
   </script>

Example

Give it a go, change the options below and see how it affects the menu in the example on the right.

  • Open the menu in fullscreen mode.
<script>
   jQuery(document).ready(function( $ ) {

   });
</script>

SCSS variables for the "fullscreen" extension

Variable Default value Datatype Description
Include CSS
$mm_opt_fullscreen true Boolean Whether or not to include CSS for the fullscreen extension throughout the entire CSS framework.
Dependencies:
Works great with:
  • The "close" content from the navbars add-on.
Incompattible with:

Next extension:
Listview