Mega Menu Experiment 2

Developer
Size
2,465 Kb
Views
16,192

How do I make an mega menu experiment 2?

Mega Menu Experiment 2.A full-width mega-menu. The solution to the issue posed here: http://foundation.zurb.com/forum/posts/2082-mega-menu---full-width-dropdown-challenge. What is a mega menu experiment 2? How do you make a mega menu experiment 2? This script and codes were developed by Wing-Hou Chan on 06 December 2022, Tuesday.

Mega Menu Experiment 2 Previews

Mega Menu Experiment 2 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mega Menu Experiment 2</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/foundation/5.1.1/css/foundation.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="contain-to-grid"> <nav class="top-bar" data-topbar> <ul class="title-area"> <li class="name"><h1><a href="#">My Site</a></h1> </li> <li class="toggle-topbar menu-icon"><a href="#">Menu</a></li> </ul> <section class="top-bar-section"> <ul class="left"> <li><a href="#">Left Nav Button</a></li> <li class="divider"><li> <li class="has-dropdown megamenu not-click"><a href="#">Mega Menu</a> <ul class="dropdown dropdown-wrapper"> <li> <div> <div class="small-12 medium-6 columns"> <ul> <li><h3>Heading 1</h3></li> <li class="active"><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li><a href="#">Link 3</a></li> </ul> </div> <div class="small-12 medium-6 columns"> <ul> <li><h3>Heading 2</h3></li> <li class="active"><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li><a href="#">Link 3</a></li> </ul> </div> </div> </li> </ul> </li> <li class="divider"><li> </ul> <ul class="right"> <li class="active"><a href="#">Right Button Active</a></li> <li class="has-dropdown"> <a href="#">Right Button with Dropdown</a> <ul class="dropdown"> <li><a href="#">First link in dropdown</a></li> </ul> </li> </ul> </section> </nav>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/foundation/5.1.1/js/foundation.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Mega Menu Experiment 2 - Script Codes CSS Codes

h3 { font-family: 'Open Sans', sans-serif; color: #fff !important;
}
@media only screen and (min-width: 641px) { .dropdown-wrapper { background-color: #333333 !important; padding: 10px 0; }
}

Mega Menu Experiment 2 - Script Codes JS Codes

$(document).foundation();
$(".megamenu").mouseenter(function(){ if($(window).width()>641){ $(".dropdown-wrapper").offset({left: 0}); $(".dropdown-wrapper").css("width",$(window).width()); }else{ $(".dropdown-wrapper").css("width",auto); }
});
Mega Menu Experiment 2 - Script Codes
Mega Menu Experiment 2 - Script Codes
Home Page Home
Developer Wing-Hou Chan
Username winghouchan
Uploaded December 06, 2022
Rating 3.5
Size 2,465 Kb
Views 16,192
Do you need developer help for Mega Menu Experiment 2?

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!

Wing-Hou Chan (winghouchan) Script Codes
Create amazing SEO content with AI!

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!