/ Mega Menu

Material Design Menu Blogger

Material Design Menu Blogger

Material Design Menu Blogger

A Material Design Menu Blogger design.

Made with

Html
Css
Javascript

Html

<nav id='inv-navigation'>
  <div class='nav-iumari'>
    <ul>
      <li><a href=''>Home</a></li>
      <li><a href='javascript:void(0)'>Web Design<span class='arrow-down'></span></a>
        <ul class='dropdown'>
          <li><a href=''>HTML</a></li>
          <li><a href=''>CSS</a></li>
          <li><a href=''>Javascript</a></li>
          <li><a href=''>JQuery</a></li>
        </ul>
      </li>
      <li><a href='javascript:void(0)'>Blogger<span class='arrow-down'></span></a>
        <ul class='dropdown'>
          <li><a href=''>Widget</a></li>
          <li><a href=''>Tips</a></li>
        </ul>
      </li>
      <li><a href='javascript:void(0)'>SEO<span class='arrow-down'></span></a>
        <ul class='dropdown'>
          <li><a href=''>Tools</a></li>
          <li><a href=''>Backlink</a></li>
        </ul>
      </li>
      <li><a href=''>Google Adsense</a></li>
      <li><a href=''>Advertising</a></li>
      <li><a href=''>Business</a></li>
    </ul>
  </div>
  <div class='nav-bg-iumari'>
    <div class='navbar-iumari'> <span></span> <span></span> <span></span> </div>
    <a href='' class='title-mobile'>Iumari</a>
  </div>
</nav>

Css

@import url(https://fonts.googleapis.com/css?family=Roboto:700);
*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  background: #2c3e50;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  height: 100vh;
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  -webkit-perspective: 600px;
  perspective: 600px;
}

a:link,
a:visited {
  color: #0279c5;
  text-decoration: none;
  transition: all .3s
}

#inv-navigation {
  margin: 0 auto;
}

.nav-iumari {
  display: block;
  margin: 15px auto;
  background: #03A9F4;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  border-radius: 3px;
}

.nav-iumari ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: block;
}

.nav-iumari li {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: inline-block;
  position: relative;
  font-size: 14;
  color: #def1f0;
}

.nav-iumari li a {
  padding: 15px 20px;
  font-size: 14;
  color: #def1f0;
  display: inline-block;
  outline: 0;
  font-weight: 400;
}

.nav-iumari li:hover ul.dropdown {
  display: block;
}

.nav-iumari li ul.dropdown {
  position: absolute;
  display: none;
  width: 200px;
  background: #2980B9;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  padding-top: 0;
}

.nav-iumari li ul.dropdown li {
  display: block;
  list-style-type: none;
}

.nav-iumari li ul.dropdown li a {
  padding: 15px 20px;
  font-size: 15px;
  color: #fff;
  display: block;
  font-weight: 400;
}

.nav-iumari li ul.dropdown li:last-child a {
  border-bottom: none;
}

.nav-iumari li:hover a {
  background: #2980B9;
  color: #fff !important;
}

.nav-iumari li:first-child:hover a {
  border-radius: 3px 0 0 3px;
}

.nav-iumari li ul.dropdown li:hover a {
  background: rgba(0, 0, 0, .1);
}

.nav-iumari li ul.dropdown li:first-child:hover a {
  border-radius: 0;
}

.nav-iumari li:hover .arrow-down {
  border-top: 5px solid #fff;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #def1f0;
  position: relative;
  top: 15px;
  right: -5px;
  content: '';
}

.title-mobile {
  display: none;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
}

@media only screen and (max-width:900px) {
  .nav-iumari {
    background: #fff;
    width: 200px;
    height: 100%;
    display: block;
    position: fixed;
    left: -200px;
    top: 0px;
    transition: left 0.25s ease;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
  }
  .title-mobile {
    position: fixed;
    display: block;
    top: 10px;
    font-size: 20px;
    left: 100px;
    right: 100px;
    text-align: center;
    color: #FFF;
  }
  .nav-iumari.visible {
    left: 0px;
    transition: left 0.25s ease;
  }
  .nav-bg-iumari {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 50px;
    margin: 0;
    position: absolute;
    top: 0px;
    left: 0px;
    background: #03A9F4;
    padding: 12px 0 0 10px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  }
  .navbar-iumari {
    display: inline-block;
    vertical-align: middle;
    height: 50px;
    cursor: pointer;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    padding: 12px;
  }
  .navbar-iumari span {
    height: 2px;
    background: #fff;
    margin: 5px;
    display: block;
    width: 20px;
  }
  .navbar-iumari span:nth-child(2) {
    width: 20px;
  }
  .navbar-iumari span:nth-child(3) {
    width: 20px;
  }
  .nav-iumari ul {
    padding-top: 50px;
  }
  .nav-iumari li {
    display: block;
  }
  .nav-iumari li a {
    display: block;
    color: #505050;
    font-weight: 600;
  }
  .nav-iumari li:first-child:hover a {
    border-radius: 0;
  }
  .nav-iumari li ul.dropdown {
    position: relative;
  }
  .nav-iumari li ul.dropdown li a {
    background: #2980B9 !important;
    border-bottom: none;
    color: #fff !important;
  }
  .nav-iumari li:hover a {
    background: #03A9F4;
    color: #fff !important;
  }
  .nav-iumari li ul.dropdown li:hover a {
    background: rgba(0, 0, 0, .1);
    !important;
    color: #fff !important;
  }
  .nav-iumari li ul.dropdown li a {
    padding: 10px 10px 10px 30px;
  }
  .nav-iumari li:hover .arrow-down {
    border-top: 5px solid #fff;
  }
  .arrow-down {
    border-top: 5px solid #505050;
    position: absolute;
    top: 20px;
    right: 10px;
  }
  .cover-bg {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

Javascript

$(document).ready(function() {
  $('.navbar-iumari').click(function() {
    $('.nav-iumari').toggleClass('visible');
    $('body').toggleClass('cover-bg');
  });
});

Author

Namina Kiky

Demo

See the Pen Material Design Menu Blogger by Namina Kiky (@Indzign) on CodePen.