Bootstrap off canvas slide menu

A simple tutorial, where we can get know quickly how to put things together to get the “off canvas slide menu” solution.

Bootstrap off canvas slide menu – a good and simple solution as jQuery plugin

The main point is to prepare a structure, based on HTML5 and Bootstrap.

<ul class="list-unstyled main-menu">
  <li class="text-right"><a href="#" id="nav-close">X</a></li>
  <li><a href="#">Menu One <span class="icon"></span></a></li>
  <li><a href="#">Menu Two <span class="icon"></span></a></li>
  <li><a href="#">Menu Three <span class="icon"></span></a></li>

    <a href="#">Dropdown</a>

    <ul class="list-unstyled">
      <li class="sub-nav">
        <a href="#">Sub Menu One <span class="icon"></span></a>
      <li class="sub-nav">
        <a href="#">Sub Menu Two <span class="icon"></span></a>
      <li class="sub-nav">
        <a href="#">Sub Menu X <span class="icon"></span></a>

  <li><a href="#">Menu Four <span class="icon"></span></a></li>
  <li><a href="#">Menu Five <span class="icon"></span></a></li>

<!-- Top -->
<div class="navbar navbar-inverse navbar-fixed-top">      
  <a class="navbar-brand" href="#">Off Canvas Menu</a>
  <div class="navbar-header pull-right">
    <a id="nav-expander" class="nav-expander fixed">
      MENU &nbsp;<i class="fa fa-bars fa-lg white"></i>

Let’s add CSS and a little bit of jQuery to get a nice, final effect, for example:

Bootstrap off canvas slide menu - demo
Bootstrap off canvas slide menu – demo

Please take a look at full tutorial for details.


Detailed info and download:

See also:

Tutorial: Creating a responsive menu in jQuery, HTML5 and CSS

CSS3 and jQuery single page scrolling plugin – singular.js

jQuery sticky menu navigation – stickUp

Responsive, toggle sidebar menu in jQuery

A nice jQuery and Bootstrap tree view plugin – Easy-Tree.js

Context menu with jQuery and Bootstrap – ContextJS