A Small Framework for Creating a Beautiful Mobile Navigation Header | mhead.js

mhead.js is a small framework for creating a beautiful mobile navigation header to accompany the mmenu.js navigation menu on your website and web application.

mhead is a jQuery plugin that is used to create a pinned header hamburger navigation for your web app that automatically shows/hides as you scroll down/up the page.

Best javascript plugin for both on and off-canvas menus with sliding submenus for your website and web application. It is highly customizable with a wide range of options, extensions, and add-ons and will always meet your needs.

Must Read: Responsive Full-width Mobile Navigation Menu With jQuery and CSS

How to make use of it:

1. The plugin is determined by the jQuery library and jQuery mmenu plugin.

<script src="/path/to/jquery.js"></script>
<link rel="stylesheet" href="/path/to/jquery.mmenu.all.css">
<script src="/path/to/jquery.mmenu.all.js"></script>

2. Load the mhead plugin’s JS and CSS information within the doc.

<link rel="stylesheet" href="jquery.mhead.css">
<script src="jquery.mhead.js"></script>

3. Load the most recent Font Awesome for the navigation icons.

<link rel="stylesheet" href="/path/to/font-awesome.min.css">

4. Create the header navigation bar with the next CSS.

<div class="mh-head Sticky" id="example">
  <span class="mh-btns-left">
    <a class="fa fa-bars" href="#menu"></a>
  <span class="mh-text">demo</span>

5. Inert your individual menu objects to the navigation.

<nav id="menu">
    <li><a href="#">Home</a></li>
    <li><span>About us</span>
        <li><a href="#">History</a></li>
        <li><span>The team</span>
            <li><a href="#">Management</a></li>
            <li><a href="#">Sales</a></li>
            <li><a href="#">Development</a></li>
        <li><a href="#">Our address</a></li>
    <li><a href="#">Contact</a></li>

6. Initialize the plugin with default settings and we’re achieved.

//  create a menu

//  fire the plugin

7. All default settings to customize the header navigation.


  scroll: {

    // amount of pixels to scroll down before hiding the header nav
    hide: 0,

    // amount of pixels to scroll down before showing the header nav
    show: 0,

    // minimum amount of pixels to scroll per scroll-event before showing or hiding the header nav
    tolerance: 4


  hamburger: {

    // query selector for the menu that should be opened when clicking the hamburger icon
    // if omitted, the plugin will use the anchor href attribute or target the first mmenu menu that it finds
    menu: null,

    // animation type
    animation: "collapse"


See Also –

Responsive Off-Canvas Navigation Menu Using CSS | Pushy
Responsive Right-Side Hamburger Menu for Mobile Devices/Laptops/Desktops
Responsive Fancy Sidebar Navigation Menu With Icons

See Demo And Download


Official Website(FrDH): Click Here

This superior jQuery/javascript plugin is developed by FrDH. For extra Advanced Usage, please go to the official website.

Related Posts


Google Translate Dropdown Customize With Country Flag | GT API

Flag google translates jQuery text that takes advantage of the Google Cloud Translation API to translate web content between languages by selecting a country from the dropdown…


HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….


CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…


How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…


Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Leave a Reply

Your email address will not be published. Required fields are marked *