Responsive Off Screen Navigation jQuery Plugin

Effective Responsive navigation patterns are so hard to find nowdays. There are so many of them. They look promising, but a lot of the time when you get into actually beggining to use one, it bites you in the behind.

I've gone ahead and made a nice jQuery plugin to give people more options. I could sit here and try to describe with words what it does but this is a demo, and you're already here, so just go ahead and play with it.

→ RESIZE THE SCREEN! ←

Markup structure is limited as of now (will-change in the future if demand is high)

<div class="layout-left-flyout visible-sm"></div>
<div class="layout-right-content">
<header class="the-header">
<div class="navbar container">

<!-- Trigger -->
<a class="btn-navbar btn-navbar-navtoggle btn-flyout-trigger" href="https://nowjava.com">
<span class="icon-bar btn-flyout-trigger"></span>
<span class="icon-bar btn-flyout-trigger"></span>
<span class="icon-bar btn-flyout-trigger"></span>
</a>

<!-- Structure -->
<nav class="the-nav nav-collapse clearfix">
<ul class="nav nav-pill pull-left">
<li class="dropdown">
<a href="https://nowjava.com">Dogs <b class="caret"></b></a>
<ul class="subnav">
<li><a href="https://nowjava.com">Terrier</a></li>
<li><a href="https://nowjava.com">Labrador</a></li>
...
</ul>
</li>
<li class="dropdown">
<a href="https://nowjava.com">Cats <b class="caret"></b></a>
<ul class="subnav">
<li><a href="https://nowjava.com">Persian</a></li>
<li><a href="https://nowjava.com">Siamese</a></li>
...
</ul>
</li>
<li class="dropdown">
<a href="https://nowjava.com">Primates <b class="caret"></b></a>
<ul class="subnav">
<li><a href="https://nowjava.com">Monkey</a></li>
...
</ul>
</li>
</ul>
<ul class="nav nav-pill pull-right">
<li><a href="https://nowjava.com">Congress </a></li>
...
</ul>
</nav>
</div>
</header>
<main class="container">
...
</main>
</div><!-- END .layout-left-flyout -->

And the JavaScript
$('.the-nav').cbFlyout( minWidth:768 );

Added minWidth option to specify a minimum width to allow the nav to be remain active.

As of now the code might still be messy. I'll dump it on github and if people submit issues I'll try to keep it updated. For now you can just copy the layout on this pen.

下载代码说明
X关闭

基于jquery.cbFlyout插件实现的响应式二级菜单特效源码

基于jquery.cbFlyout插件实现的响应式二级菜单特效源码,是一段实现了鼠标悬浮在导航栏目上时,自动展示出下拉二级菜单的效果代码,本段代码适用于所有网页使用,有需要的朋友们可以前来下载使用。本段代码兼容目前最新的各类主流浏览器,是一款非常优秀的特效源码。