In my past posts I published two different position style navigation menus,
Fixed to header and
static position menus , here I am publishing a new style of menu it’s calls Overlay style; full navigation will appear top-left side of your blog interface with
bar/burger style trigger and hover on the trigger will show full navigation menu on a full screen overlay page. It also responsive so also works seamlessly on mobile devices; it has an extra close button in case automatic overlay closing function unable to work. Made with
CSS, CSS3, HTML, Google font let’s see how it looks like and how to add it to your blogger blog.
Overlay style navigation menu for Blogger Live Demo: (Click here) Codes for Copy: <div class="menu-outer"> <div class="menu-icon"> <div class="bar"></div> <div class="bar"></div> <div class="bar"></div> </div> <!--crawlist.net widget starts--> <div class="nav"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Blogger</a></li> <li><a href="#">Wordpress</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </div> <!--crawlist.net widget ends--> </div> <a class="menu-close" onClick="return true"> <div class="menu-icon"> <div class="bar"></div> <div class="bar"></div> </div> </a> <style> /*crawlist.net CSS starts*/ @import url(https://fonts.googleapis.com/css?family=Montserrat); .menu-outer:hover ~ .menu-close { margin-right:-100px; } .menu-outer:hover .bar { background:rgba(100,200,240,.9); } .menu-outer > .nav ul { top:15%; } .menu-outer { overflow: hidden; position: fixed; top: 0; font-family: 'Montserrat', serif; z-index: 998; width: 100%; left: 100%; margin-left: -100px; height: 200%; background:rgba(100,200,240,.9); -webkit-transition: all ease .5s; -moz-transition: all ease .5s; -ms-transition: all ease .5s; -o-transition: all ease .5s; transition: all ease .5s; -webkit-transform-origin: top left; -moz-transform-origin: top left; -ms-transform-origin: top left; -o-transform-origin: top left; transform-origin: top left; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); } .menu-outer:hover { background: rgba(100,200,240,.98); left: 0; margin-left: 0; -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); } .menu-icon { z-index: 999; position: absolute; top: 58px; left: 15px; width: 30px; pointer-events: none; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); -webkit-transition: all ease .5s; -moz-transition: all ease .5s; -ms-transition: all ease .5s; -o-transition: all ease .5s; transition: all ease .5s; } .menu-icon .bar { background: rgba(250,250,250,1); width: 100%; height: 5px; margin: 0 0 5px; -webkit-transition: all ease .5s; -moz-transition: all ease .5s; -ms-transition: all ease .5s; -o-transition: all ease .5s; transition: all ease .5s; } .menu-outer:hover > .menu-icon { opacity: 0; } .nav ul { position:absolute; width:100%; padding: 0; left: 10%; -webkit-transition: all ease .5s; -moz-transition: all ease .5s; -ms-transition: all ease .5s; -o-transition: all ease .5s; transition: all ease .5s; } .menu-outer:hover > .nav ul { left: 0; } .nav li { list-style:none; text-align: center; text-transform: uppercase; } .nav li a { font-size: 2em; color: rgba(255,255,255,.8); text-decoration: none; margin: 0 auto; padding: 20px; display:block; -webkit-transition: all ease .5s; -moz-transition: all ease .5s; -ms-transition: all ease .5s; -o-transition: all ease .5s; transition: all ease .5s; text-align:center } .nav li a:hover { color: rgba(255,255,255,1); } @media screen and (max-width: 600px), screen and (max-height: 600px) { .nav ul {font-size:.75em;} .nav ul a {padding: 10px;} } .menu-close { z-index: 9999; position: fixed; top: 0; right: 100%; width: 200px; height: 200px; background: rgba(250,130,70,1); cursor: pointer; -webkit-transition: all ease .5s; -moz-transition: all ease .5s; -ms-transition: all ease .5s; -o-transition: all ease .5s; transition: all ease .5s; -webkit-transform-origin: top right; -moz-transform-origin: top right; -ms-transform-origin: top right; -o-transform-origin: top right; transform-origin: top right; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); } .menu-close .menu-icon { right: 15px; left: auto;top: 68px; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); } .menu-close .bar { background: rgba(250,250,250,1); width: 100%; height: 5px; position:absolute; -webkit-transform-origin: center; -moz-transform-origin: center; -ms-transform-origin: center; -o-transform-origin: center; transform-origin: center; } .menu-close .bar:first-child { -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); } .menu-close .bar:last-child { -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); } .tabs .widget li, .tabs .widget li {float:none} /*crawlist.net CSS ends*/ </style> How to add: First log into your Blogger blog, Select your blog Go to ‘Layout’ tab, select ‘add a gadget’ From popup menu select ‘Html/Javascript’ Copy the following codes and paste into content box; Save template, then (follow this if you using Blogger default template) Go to ‘Template’ tab; ‘Edit HTML’ And search for /* Tabs (using Ctrl+F or Cmd+F inside of code snippet) Then delete all Tabs CSS codes /* Tabs ----------------------------------------------- */ .tabs-inner .section:first-child { border-top: $(header.bottom.border.size) solid $(tabs.border.color); } .tabs-inner .section:first-child ul { margin-top: -$(header.border.size); border-top: $(header.border.size) solid $(tabs.border.color); border-left: $(header.border.horizontalsize) solid $(tabs.border.color); border-right: $(header.border.horizontalsize) solid $(tabs.border.color); } .tabs-inner .widget ul { background: $(tabs.background.color) $(tabs.background.gradient) repeat-x scroll 0 -800px; _background-image: none; border-bottom: $(tabs.border.width) solid $(tabs.border.color); margin-top: $(tabs.margin.top); margin-left: -$(tabs.margin.side); margin-right: -$(tabs.margin.side); } .tabs-inner .widget li a { display: inline-block; padding: .6em 1em; font: $(tabs.font); color: $(tabs.text.color); border-$startSide: $(tabs.border.width) solid $(content.background.color); border-$endSide: $(tabs.bevel.border.width) solid $(tabs.border.color); } .tabs-inner .widget li:first-child a { border-$startSide: none; } .tabs-inner .widget li.selected a, .tabs-inner .widget li a:hover { color: $(tabs.selected.text.color); background-color: $(tabs.selected.background.color); text-decoration: none; } After doing all of these steps; save template. How to configure: Fill <a href="#">Home</a>'s # with your label links and change the anchor words; Now check your blog out for make sure it’s working.
FAQ and Caution: Tested on many template; should work perfectly on any template; if the design breaks then try to find out what breaking the design (mostly the thing disrupt the default design is, default code setting for .widget and .tabs CSS codes) You may change the default color of this menu just change the background color of .menu-outer and .menu-outer:hover with any rgba or hex color; Works fine on most latest updated web browsers. SO what you thinking about this menu don’t forget to mention. Chill.....
0 comments:
Post a Comment