Navbar
How do I make an navbar?
What is a navbar? How do you make a navbar? This script and codes were developed by Clayton on 04 November 2022, Friday.
Navbar - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Navbar</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript"> $(function() { $(".lupa a").click(function() { $("#header .search").slideToggle("slow"); }); }); </script>
</head>
<body>
<header id="header"> <section class="logo"> <div class="logo-box"> <div class="marca"> <a href="#"><img src ="" ></a> </div> <div class="lupa"> <a href="#"><img src="http://www.iconsdb.com/icons/preview/tropical-blue/google-web-search-xxl.png" width ="25px;" /></a> </div> </div> </section> <section class="search"> <form method="post" class="formSearch" name ="form" action ="#" class ="search" autocomplete ="off"> </section> <nav class="navbar"> <input type="checkbox" class="menu-btn" id="menu-btn"/> <label class="menu-icon" for="menu-btn"> <span class="navicon"></span> </label> <ul class="menu"> <li><a href="">Home</a></li> <li><a href="">Categorias »</a> <ul class="submenu"> <li><a href="">link</a></li> </ul> </li> <li><a href="">Login</a></li> <li><a href="">Ofertas</a></li> <li><a href="">Atendimento</a></li> <li><a href="">Fale Conosco</a></li> </ul> </nav> </header> <script src="js/index.js"></script>
</body>
</html>
Navbar - Script Codes CSS Codes
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
border: 0;
font-family: inherit;
font-size: 100%;
font-style: inherit;
font-weight: inherit;
margin: 0;
outline: 0;
padding: 0;
vertical-align: baseline;
}
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
*,
*::before,
*::after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
}
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 20px;
color: #333;
}
body:after {
content: "\00a9 2017 Infogyba Soluções em Ti";
display: table;
width: 100%;
min-height: 5em;
padding: 0.5em;
bottom: 0;
background: #111112;
color: #fff;
font-family: ('Trebuchet MS'), arial, sans-serif;
font-size: 1.1em;
font-weight: 600;
text-align: center;
}
a {
background: transparent;
text-decoration: none;
}
h1 {
font-family: inherit;
font-size: 15px;
font-weight: 600;
line-height: 1;
color: #F2F2F2 !important;
}h2 {
font-size: 18px;
color: #00f300;
text-transform: none !important;
margin-top: 10px;
margin-bottom: 10px;
}
p {
font-family: ('Trebuchet MS'), arial, sans-serif;
font-size: 15px;
font-style: italic;
font-weight: bold;
color: #fff;
margin-top: 10px;
margin-bottom: 10px;
}
#header {
display:flex;
flex-direction:row;
width:100%;
height:auto;
background:#26b;
}
#header .logo {
display:flex;
flex-direction:column;
width:40%;
position:relative;
}
#header .logo .logo-box {
display:flex;
flex-direction:row;
width:100%;
padding:0.7em;
box-sizing:border-box;
}
#header .logo .logo-box .marca {
width:60%;
}
#header .logo .logo-box .lupa {
width:40%;
}
#header .search {
width:100%;
display:none;
}
#header .search .formSearch {
width:100%;
padding:0.5em;
}
#header .search .formSearch input{
width:95%;
border:2px solid #222;
font-size:1em;
padding:0.5em 1em;
line-height:1.33;
box-sizing:border-box;
}
#header .navbar {
width:60%;
height:auto;
}
#header .navbar ul.menu { position: relative; z-index: 597; float: left;
}
#header .menu, .submenu {
list-style: none;
padding: 0;
margin: 0;
}
#header .menu a {
display: block;
background-color: #22c;
width:50%;
margin-left:40%;
text-decoration: none;
padding: 10px;
color: #fff;
}
.menu a:hover { background-color: #C5C5C5;
}
.menu li:hover .submenu { list-style: none; margin: 0; padding: 0;
}
.submenu a { background-color: #999;
}
.submenu a:hover {
background-color: #666;
}
.submenu {
overflow: hidden;
max-height: 0;
-webkit-transition: all 0.5s ease-out;
}
#header .navbar .menu-btn {
display: none;
}
#header .navbar .menu-icon {
cursor: pointer;
display: inline-block;
float: right;
padding: 28px 20px;
position: relative;
user-select: none;
}
#header .navbar .menu-icon .navicon {
background: #fff;
display: block;
height: 2px;
position: relative;
transition: background .2s ease-out;
width: 18px;
}
#header .navbar .menu-icon .navicon:before,
#header .navbar .menu-icon .navicon:after {
background: #fff;
content: '';
display: block;
height: 100%;
width: 100%;
position: absolute;
transition: all .2s ease-out;
}
#header .navbar .menu-icon .navicon:before {
top: 5px;
}
#header .navbar .menu-icon .navicon:after {
top: -5px;
}
#header .navbar .menu-btn:checked ~ .menu {
display:block;
height:auto;
}
#header .navbar .menu-btn:checked ~ .menu-icon .navicon {
background: transparent;
}
#header .navbar .menu-btn:checked ~ .menu-icon .navicon:before {
transform: rotate(-45deg);
}
#header .navbar .menu-btn:checked ~ .menu-icon .navicon:after {
transform: rotate(45deg);
}
#header .navbar .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
#header .navbar .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
top: 0;
}
Navbar - Script Codes JS Codes
$(function(){$.fn.scrollToTop=function(){$(this).hide().removeAttr("href");if($(window).scrollTop()!="0"){$(this).fadeIn("slow")}var scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()=="0"){$(scrollDiv).fadeOut("slow")}else{$(scrollDiv).fadeIn("slow")}});$(this).click(function(){$("html, body").animate({scrollTop:0},"slow")})}});
$(function(){ $("#toTop").scrollToTop();
});
Developer | Clayton |
Username | x-gyba |
Uploaded | November 04, 2022 |
Rating | 3 |
Size | 3,470 Kb |
Views | 8,096 |
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 |
Cadastro de Produtos | 2,170 Kb |
My Responsive Menu teste | 2,096 Kb |
Responsive Shop | 2,178 Kb |
My Footer | 2,173 Kb |
Vitrine Responsiva | 3,775 Kb |
My Cart Responsive | 4,440 Kb |
Menu | 1,896 Kb |
Layout | 4,234 Kb |
Vitrine Responsiva Final | 21,911 Kb |
Teste | 2,534 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 |
Arrow Navigation | Hinducows | 1,973 Kb |
Sidebar Thing | Jonambas | 2,779 Kb |
CardMove | Thompsonemerson | 3,699 Kb |
ECharts Version 3.0 - Bar Marker Chart | WebCodePro | 2,726 Kb |
Pagepilling.js | Blossk | 6,554 Kb |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 Kb |
Toggle menu | Seyedi | 2,279 Kb |
Click Based Rotation Demo | Zeaklous | 2,086 Kb |
Jstam.com Home Page | Jstam | 10,558 Kb |
A Pen by Rob Levin | Roblevin | 2,787 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!