A repository of over 1000 quality jQuery plugins

jQuery Secret Nav

Secret Nav is a jQuery Navigation plugin.

Created by jachinte

Push menu plugin that slides out an off-canvas navigation from the edge of the screen

Not what you're looking for? Click here to view more Navigation jQuery plugins

Got something to say? let's get in touch: @jachinte. Please let me know if you're using SecretNav, it's always nice to see what you're using it for!


npm version Bower version

SecretNav is a small jQuery push menu plugin that slides out an off-canvas navigation from the edge of the screen while pushing the main content away with a fancy CSS3 powered 3D perspective effect.

This plugin has been inspired by the amazing work done by the Codrops team, specifically by the effects presented in this article. The code is based in their initial implementation.



The plugin requires jQuery 1.7 or higher, and Modernizr. Install via npm, bower or download as a zip:

npm install jquery.secretnav
bower install jquery.secretnav


Live demonstration:

You can find the demo files in here.


Include jQuery and Modernzr, and then the SecretNav plugin and its CSS styles. These files can be found in the dist/ folder. A custom build of Modernizr containing only what SecretNav requires can be found in demo/js/

<script src="path/to/jquery.js"></script>
<script src="path/to/modernizr.js"></script>
<script src="path/to/jquery.secretnav.min.js"></script>
<link rel="stylesheet" type="text/css" href="path/to/jquery.secretnav.css" />

Then, initialize the plugin:

$( document ).ready(function() {
    $( '#container' ).SecretNav({       
        navSelector: 'nav',         // selector of the nav tag
        openSelector: '.open-menu', // selector of the menu's opener
        position: 'left'            // left | top

Your HTML should look similar to this:

    <div id="container"> The content ... <a class="open-menu">Open menu</a> </div>
        <a href="#">Link 1</a>
        <a href="#">Link n</a>


SecretNav can also be used with require.js.


SecretNav comes with a basic styling. If you want to customize the appearance you can modify the styles in src/sass/jquery.secretnav.scss, and then re-run the grunt command to generate the distribution files again.


You are invited to contribute code and suggestions to this project. The more the merrier.

You might also like these other Navigation jQuery Plugins

  • Navigation

    A jQuery plugin for simple responsive navigation.

  • jQuery Konami

    jQuery plugin to trigger an event after the success of the Konami Code (up up down down left right left […]

  • Headroom.js

    Give your pages some headroom. Hide your header until you need it.


The MIT License (MIT)