Responsive overlay menu navigation
How do I make an responsive overlay menu navigation?
Responsive flat animated overlay menu using css html and jquery nav navigation. There are two menus, classic and hamburger menu with full screen overlay. Its also flat. Links work when menu is downloaded. Icons from fontawesome . What is a responsive overlay menu navigation? How do you make a responsive overlay menu navigation? This script and codes were developed by Mario Loncarek on 03 July 2022, Sunday.
Responsive overlay menu navigation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Responsive overlay menu navigation</title> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.2/normalize.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <nav>
<ul> <li><a href="http://facebook.com">About</a></li> <li><a href="#">Services</a></li> <li><a href="#">Work</a></li>
</ul>
<div class="button"> <a class="btn-open" href="#"></a>
</div>
</nav>
<div class="overlay"> <div class="wrap"> <ul class="wrap-nav"> <li><a href="#">About</a> <ul> <li><a href="#">About Company</a></li> <li><a href="#">Designers</a></li> <li><a href="#">Developers</a></li> <li><a href="#">Pets</a></li> </ul> </li> <li><a href="#">Services</a> <ul> <li><a href="https://www.google.hr/">Web Design</a></li> <li><a href="#">Development</a></li> <li><a href="#">Apps</a></li> <li><a href="#">Graphic design</a></li> <li><a href="#">Branding</a></li> </ul> </li> <li><a href="#">Work</a> <ul> <li><a href="#">Web</a></li> <li><a href="#">Graphic</a></li> <li><a href="#">Apps</a></li> </ul> </li> </ul> <div class="social"> <a href="http://mario-loncarek.from.hr/"> <div class="social-icon"> <i class="fa fa-facebook"></i> </div> </a> <a href="#"> <div class="social-icon"> <i class="fa fa-twitter"></i> </div> </a> <a href="#"> <div class="social-icon"> <i class="fa fa-codepen"></i> </div> </a> <a href="#"> <div class="social-icon"> <i class="fa fa-behance"></i> </div> </a> <a href="#"> <div class="social-icon"> <i class="fa fa-dribbble"></i> </div> </a> <p> From: Zagreb, Croatia<br> Site: <a href="http://mario-loncarek.from.hr/">mario-loncarek.from.hr</a> </p> </div> </div>
</div>
<div class="content"> Click on hamburger to open the overlay menu
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Responsive overlay menu navigation - Script Codes CSS Codes
body { margin:0; padding:0; background:#fff; font-family:'Montserrat',sans-serif; font-size:12px;
}
ul { margin:0; padding:0; text-decoration:none; list-style:none;
}
li { padding:0; margin:0;
}
nav { text-align:center; width:100%; position:relative; height:auto; overflow:hidden; background:none;
}
nav ul { text-align:center;
}
nav ul li { display:inline-block;
}
nav ul li a { color:#333; display:inline-block; padding:1em 3em; text-decoration:none; border-bottom:2px solid #fff; transition-property:all .2s linear 0s; -moz-transition:all .2s linear 0s; -webkit-transition:all .2s linear 0s; -o-transition:all .2s linear 0s; font-size:16px;
}
nav ul li a:hover { color: #34B484;
}
/*styling open close button*/
.button { display:inline; position:absolute; right:50px; top:6px; z-index:999; font-size:30px;
}
.button a { text-decoration:none;
}
.btn-open:after { color:#333; content:"\f0c9"; font-family:"FontAwesome"; transition-property:all .2s linear 0s; -moz-transition:all .2s linear 0s; -webkit-transition:all .2s linear 0s; -o-transition:all .2s linear 0s;
}
.btn-open:hover:after { color:#34B484;
}
.btn-close:after { color:#fff; content:"\f00d"; font-family:"FontAwesome"; transition-property:all .2s linear 0s; -moz-transition:all .2s linear 0s; -webkit-transition:all .2s linear 0s; -o-transition:all .2s linear 0s;
}
.btn-close:hover:after { color: #34B484;
}
/*overlay*/
.overlay { display:none; position:fixed; top:0; height:100%; width:100%; background:#333; overflow:auto; z-index:99;
}
.wrap { color:#e9e9e9; text-align:center; max-width:90%; margin:0 auto;
}
.wrap ul.wrap-nav { border-bottom:1px solid #575757; text-transform:capitalize; padding:150px 0px 100px;
}
.wrap ul.wrap-nav li { font-size:20px; display:inline-block; vertical-align:top; width:24%; position:relative;
}
.wrap ul.wrap-nav li a { color:#34B484; display:block; padding:8px 0; text-decoration:none; transition-property:all .2s linear 0s; -moz-transition:all .2s linear 0s; -webkit-transition:all .2s linear 0s; -o-transition:all .2s linear 0s;
}
.wrap ul.wrap-nav li a:hover { color:#f0f0f0;
}
.wrap ul.wrap-nav ul { padding:20px 0;
}
.wrap ul.wrap-nav ul li { display:block; font-size:13px; width:100%; color:#e9e9e9;
}
.wrap ul.wrap-nav ul li a { color:#f0f0f0;
}
.wrap ul.wrap-nav ul li a:hover { color:#34B484;
}
.social { font-size:25px; padding:20px;
}
.social p { margin:0; padding:20px 0 5px 0; line-height:30px; font-size:13px;
}
.social p a { color:#34B484; text-decoration:none; margin:0; padding:0;
}
.social-icon { width:80px; height:50px; background:#e9e9e9; color:#333; display:inline-block; margin:0 20px; transition-property:all .2s linear 0s; -moz-transition:all .2s linear 0s; -webkit-transition:all .2s linear 0s; -o-transition:all .2s linear 0s;
}
.social-icon:hover { background:#34B484; color:#f0f0f0;
}
.social-icon i { margin-top:12px;
}
@media screen and (max-width:48em) { .wrap ul.wrap-nav>li { width:100%; padding:20px 0; border-bottom:1px solid #575757; } .wrap ul.wrap-nav { padding:30px 0px 0px; } nav ul { opacity:0; visibility:hidden; } .social { color:#c1c1c1; font-size:25px; padding:15px 0; } .social-icon { width:100%; height:50px; background:#fff; color:#333; display:block; margin:5px 0; }
}
.content { width:100%; margin-top:200px; font-size:20px; color#333; text-align: center;
}
Responsive overlay menu navigation - Script Codes JS Codes
$(document).ready(function(){ $(".button a").click(function(){ $(".overlay").fadeToggle(200); $(this).toggleClass('btn-open').toggleClass('btn-close'); });
});
$('.overlay').on('click', function(){ $(".overlay").fadeToggle(200); $(".button a").toggleClass('btn-open').toggleClass('btn-close'); open = false;
});
Developer | Mario Loncarek |
Username | riogrande |
Uploaded | July 03, 2022 |
Rating | 4.5 |
Size | 3,198 Kb |
Views | 93,104 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Css only hover animation image effect | 2,593 Kb |
Responsive full width carousel with owl-carousel | 4,226 Kb |
Responsive overlay menu - columns menu example | 3,215 Kb |
Responsive overlay menu - full menu with second menu example | 3,613 Kb |
Css3 only dropdown menu | 2,519 Kb |
Css3 only dropdown menu | 2,563 Kb |
Buttons with icons made easy - with font awesome | 2,097 Kb |
Responsive overlay menu - full menu example | 3,452 Kb |
Sticky nav - demo from designmodo | 2,862 Kb |
Responsive carousel with hover effects - owl carousel | 4,334 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Fading gradient button | Insprd | 1,713 Kb |
RWD Conversion Practice | Jxqr97 | 2,743 Kb |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
Simple Login Form Template | Banunn | 3,571 Kb |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
Weather App | Kw7oe | 3,162 Kb |
SVG Playground | Roygwells | 1,834 Kb |
Responsive Minimal Blog Layout | Hackthevoid | 5,261 Kb |
Svg animation draw | SzymonDziewonski | 5,545 Kb |
Canvas stripes | Adrianparr | 1,948 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!