One page navigation with Dropdown (links)
<!-- ========== HEADER ========== -->
<header id="header" class="header header-sticky-top"
data-hs-header-options='{
"fixMoment": 1000,
"fixEffect": "slide"
}'>
<div class="header-section">
<div id="logoAndNav" class="container">
<!-- Nav -->
<nav class="js-mega-menu navbar navbar-expand-lg">
<!-- Logo -->
<a class="navbar-brand" href="#" aria-label="Front">
<img src="../../assets/svg/logos/logo.svg" alt="Logo">
</a>
<!-- End Logo -->
<!-- Responsive Toggle Button -->
<button type="button" class="navbar-toggler btn btn-icon btn-sm rounded-circle"
aria-label="Toggle navigation"
aria-expanded="false"
aria-controls="navBar"
data-toggle="collapse"
data-target="#navBar">
<span class="navbar-toggler-default">
<svg width="14" height="14" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path fill="currentColor" d="M17.4,6.2H0.6C0.3,6.2,0,5.9,0,5.5V4.1c0-0.4,0.3-0.7,0.6-0.7h16.9c0.3,0,0.6,0.3,0.6,0.7v1.4C18,5.9,17.7,6.2,17.4,6.2z M17.4,14.1H0.6c-0.3,0-0.6-0.3-0.6-0.7V12c0-0.4,0.3-0.7,0.6-0.7h16.9c0.3,0,0.6,0.3,0.6,0.7v1.4C18,13.7,17.7,14.1,17.4,14.1z"/>
</svg>
</span>
<span class="navbar-toggler-toggled">
<svg width="14" height="14" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path fill="currentColor" d="M11.5,9.5l5-5c0.2-0.2,0.2-0.6-0.1-0.9l-1-1c-0.3-0.3-0.7-0.3-0.9-0.1l-5,5l-5-5C4.3,2.3,3.9,2.4,3.6,2.6l-1,1 C2.4,3.9,2.3,4.3,2.5,4.5l5,5l-5,5c-0.2,0.2-0.2,0.6,0.1,0.9l1,1c0.3,0.3,0.7,0.3,0.9,0.1l5-5l5,5c0.2,0.2,0.6,0.2,0.9-0.1l1-1 c0.3-0.3,0.3-0.7,0.1-0.9L11.5,9.5z"/>
</svg>
</span>
</button>
<!-- End Responsive Toggle Button -->
<!-- Navigation -->
<div id="navBar" class="collapse navbar-collapse">
<ul class="js-scroll-nav navbar-nav">
<li class="navbar-nav-item">
<a class="nav-link" href="#homeSection">Home</a>
</li>
<!-- Pages -->
<li class="hs-has-sub-menu header-nav-item"
data-hs-mega-menu-item-options='{
"desktop": {
"position": "left"
}
}'>
<a id="pagesMegaMenu" class="hs-mega-menu-invoker nav-link nav-link-toggle" href="javascript:;" aria-haspopup="true" aria-expanded="false" aria-labelledby="pagesSubMenu">Pages</a>
<div id="pagesSubMenu" class="hs-sub-menu dropdown-menu" aria-labelledby="pagesMegaMenu" style="min-width: 230px;">
<a class="dropdown-item" href="javascript:;">About</a>
<a class="dropdown-item" href="javascript:;">Services</a>
<a class="dropdown-item" href="javascript:;">Contacts</a>
</div>
</li>
<!-- End Pages -->
<li class="navbar-nav-item">
<a class="nav-link" href="#worksSection">Works</a>
</li>
<li class="navbar-nav-item">
<a class="nav-link" href="#blogSection">Blog</a>
</li>
<li class="navbar-nav-item">
<a class="nav-link" href="#specialtySection">Specialty</a>
</li>
<li class="nav-item navbar-nav-last-item">
<a class="btn btn-primary btn-sm transition-3d-hover" href="https://themes.getbootstrap.com/product/front-multipurpose-responsive-template/" target="_blank">Buy Now</a>
</li>
</ul>
</div>
<!-- End Navigation -->
</nav>
<!-- End Nav -->
</div>
</div>
</header>
<!-- ========== END HEADER ========== -->
<link rel="stylesheet" href="../../assets/vendor/font-awesome/css/all.min.css">
<link rel="stylesheet" href="../../assets/vendor/hs-mega-menu/dist/hs-mega-menu.min.css">
<!-- JS Implementing Plugins -->
<script src="../../assets/vendor/hs-header/dist/hs-header.min.js"></script>
<script src="../../assets/vendor/hs-mega-menu/dist/hs-mega-menu.min.js"></script>
<script src="../../assets/vendor/hs-scroll-nav/dist/hs-scroll-nav.min.js"></script>
<script src="../../assets/vendor/appear.js"></script>
<!-- JS Plugins Init. -->
<script>
$(document).on('ready', function () {
// initialization of header
var header = new HSHeader($('#header')).init();
// initialization of scroll nav
$('.js-scroll-nav').each(function () {
var scrollNav = new HSScrollNav($(this)).init();
});
// initialization of HSMegaMenu component
var megaMenu = new HSMegaMenu($('.js-mega-menu')).init();
});
</script>
Pages content goes here...
Works content goes here...
Blog content goes here...
Specialty content goes here...