Online-store-header
How do I make an online-store-header?
What is a online-store-header? How do you make a online-store-header? This script and codes were developed by Milano_O on 10 December 2022, Saturday.
Online-store-header - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>online-store-header</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/MaterialDesign-Webfont/1.7.22/css/materialdesignicons.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- http://www.tyler.com/online-store/ -->
<!-- header with search & dropdown -->
<main class="main"> <header class="header"> <div class="wrapper-block"> <div class="logo"> <img src="https://s3.amazonaws.com/wp-tyler-storage/wp-content/uploads/sites/2798/2016/10/05211536/small.png" alt="logo image" /> </div> <nav class="nav"> <ul> <li> <a href="javascript:;">Home</a> </li> <li> <a href="javascript:;">Shop</a> </li> <li> <a href="javascript:;">About Us</a> </li> <li> <a href="javascript:;" class="drop"> Contact <i class="mdi mdi-chevron-down mdi-18px"></i> </a> <ul class="sub"> <li> <a href="javascript:;">Sub 1</a> </li> <li> <a href="javascript:;">Sub 2</a> </li> </ul> </li> <li> <a href="javascript:;">Cart</a> </li> <li> <a href="javascript:;" class="search"> <i class="mdi mdi-magnify mdi-18px"></i> </a> </li> </ul> </nav> </div> </header>
<div class="search-bar"> <div class="wrapper-block"> <input type="text" placeholder="Search..."/> </div>
</div> <div class="banner"> <img src="https://s3.amazonaws.com/wp-tyler-storage/wp-content/uploads/sites/2798/2016/10/05211449/hero_slide_2.jpg" alt="img-banner"> <div class="banner-wrapper"> Amazing Shirts <a href="javascript:;">click</a> </div> </div> <footer class="footer"> <p>McMilan 2016</p> </footer>
<div class="overflow-block"> <a href="javascript:;" class="close"><i class="mdi mdi-close-circle mdi-24px"></i></a> <div class="overflow-block_wrapper"> <p> desperados </p> </div>
</div>
</main> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Online-store-header - Script Codes CSS Codes
body { font-size: 14px; font-family: sans-serif;
}
.main { width: 100%; height: 100%; overflow: hidden; position: relative;
}
.main .header { position: relative; z-index: 9999; width: 100%; float: left; border-bottom: 1px solid #eee; background: #fff; padding: 20px 0;
}
.main .header .wrapper-block { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
}
.main .header .wrapper-block .logo { max-width: 100%; height: auto;
}
.main .header .wrapper-block .nav { width: 100%;
}
.main .header .wrapper-block .nav ul { display: flex; justify-content: flex-end;
}
.main .header .wrapper-block .nav ul li { display: flex; position: relative;
}
.main .header .wrapper-block .nav ul li:last-child { border-left: 1px solid #ccc;
}
.main .header .wrapper-block .nav ul li a { display: block; font-size: 18px; line-height: 18px; text-decoration: none; color: #888; padding: 10px; transition: all 0.3s ease-in-out; cursor: pointer;
}
.main .header .wrapper-block .nav ul li a:focus, .main .header .wrapper-block .nav ul li a:hover, .main .header .wrapper-block .nav ul li a:active { color: #333;
}
.main .header .wrapper-block .nav ul li .sub { position: absolute; z-index: 99999; min-width: 150px; background: #ccc; top: 50px; display: flex; flex-direction: column; transition: all 0.3s ease-in-out; transform: translateY(-1000%);
}
.main .header .wrapper-block .nav ul li .sub:before { content: ""; position: absolute; top: -10px; left: 80px; width: 0; height: 0; border-style: solid; border-width: 0 7.5px 10px 7.5px; border-color: transparent transparent #cccccc transparent;
}
.main .header .wrapper-block .nav ul li .sub li { width: 100%;
}
.main .header .wrapper-block .nav ul li .sub li:last-child > a { border-bottom: none;
}
.main .header .wrapper-block .nav ul li .sub li a { width: 100%; display: block; padding: 15px 5px; color: #888; border-bottom: 1px solid #eee; transition: all 0.3s ease-in-out;
}
.main .header .wrapper-block .nav ul li .sub li a:hover { background: #333; color: #fff;
}
.main .header .wrapper-block .nav ul li .sub.active { transform: translateY(0%); z-index: 999999999999999999;
}
.main .header .wrapper-block .nav ul li .search { color: indianred;
}
.main .header.fixed { position: fixed; top: 0;
}
.main .search-bar { width: calc(100% - 10px); float: left; padding: 5px; position: absolute; z-index: 9; top: 102px; transition: all 0.3s ease-in-out; transform: translate3d(-1000%, 0, 0); background: #333;
}
.main .search-bar .wrapper-block { max-width: 1200px; margin: 0 auto;
}
.main .search-bar .wrapper-block input[type="text"] { width: 100%; outline: none; border: none; padding: 20px 10px; background: #f5f5f5;
}
.main .search-bar.active { transform: translate3d(0, 0, 0);
}
.main .banner { width: 100%; float: left; position: relative; max-height: 600px; overflow: hidden; display: flex; justify-content: center; align-items: center; background: #000;
}
.main .banner img { height: auto; width: 100%; max-width: 100%; max-height: 100%; opacity: 0.6;
}
.main .banner .banner-wrapper { position: absolute; z-index: 999; font-size: 70px; font-weight: bolder; color: #ccc; display: flex; justify-content: center; align-items: center; flex-direction: column;
}
.main .banner .banner-wrapper a { font-size: 33px; width: 30%; display: inline-block; text-decoration: none; text-align: center; margin: 30px 0 0 0; padding: 10px; background-color: #ff3955; color: #ccc; transition: all 0.3s ease-in-out;
}
.main .banner .banner-wrapper a:hover { border-radius: 5px; background: #000; color: indianred;
}
.main .footer { position: relative; width: 100%; z-index: 999; display: flex; justify-content: center; align-items: center; padding: 100px 0; background: #fff;
}
.main .footer p { color: #ccc;
}
.main .overflow-block { display: flex; justify-content: center; align-items: center; background: #eee; width: 100vw; height: 100vh; position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 999999999999; transition: all 0.3s ease; transform: translate3d(0, 1000%, 0);
}
.main .overflow-block .close { position: absolute; top: 0; right: 10px; padding: 10px; text-decoration: none;
}
.main .overflow-block .overflow-block_wrapper { flex: 1;
}
.main .overflow-block .overflow-block_wrapper p { font-size: 57px; text-align: center;
}
.main .overflow-block.show { transform: translate3d(0, 0, 0);
}
Online-store-header - Script Codes JS Codes
$(function(e) { "use strict"; $(".drop").on("click", function(e) { $(".sub").toggleClass("active"); }); $(".search").on("click", function(e) { $(".search-bar").toggleClass("active"); }); $(".banner-wrapper > a").on("click", function(e) { var modal = $(".banner-wrapper > a"); $(".overflow-block").addClass("show"); }); $(".close").on("click", function(e) { $(".overflow-block").removeClass("show"); });
/* if(!$(event.target).is('#foo')) { // hide menu $(".search-bar").css("opasity", 0); } */ // sticky header
// run on scroll event
/* var navOffset, scrollPos = 0; $(window).scroll(function() { navOffset = $(".header").offset().top; scrollPos = $(window).scrollTop(); if (scrollPos >= navOffset) { $(".header").addClass("fixed"); } else { $(".header").removeClass("fixed"); } }); */
});
Developer | Milano_O |
Username | milanodituti |
Uploaded | December 10, 2022 |
Rating | 3 |
Size | 4,917 Kb |
Views | 6,072 |
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 |
Sliding Door Reveal | 2,271 Kb |
Slide Horizontal from Top-Left Navigation in Pure CSS Tutorial | 3,443 Kb |
Accordian_222 new | 3,320 Kb |
Input, forms, datalist... | 2,530 Kb |
Organizing Data with Tables | 2,049 Kb |
Materialize | 2,578 Kb |
Animated_hamburger | 2,767 Kb |
A Pen by milano_O | 2,969 Kb |
Siema slider | 3,541 Kb |
HTML-and-CSS-slide-out-navigation | 2,963 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 |
Slider for stackoverflow | KKOKU | 3,222 Kb |
Google Fonts Sass Mixin | HugoGiraudel | 4,237 Kb |
RPG Style Text Dialogue | Odylic | 2,635 Kb |
Sticky Navbar | Phantomesse | 5,106 Kb |
A Pen by Rob Levin | Roblevin | 2,787 Kb |
A Pen by Sooba | Sooba | 2,516 Kb |
Slide In Panel | Vikvarg | 2,811 Kb |
A Pen by Bryan | Brydave | 2,286 Kb |
Greyscale image with filter in CSS3 | NickyCDK | 1,562 Kb |
Free css icon set v2 - one div | Ben_jammin | 0 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!