A Bootstrap add-on to create drawer (off-canvas) styled navigation.
As of Bootstrap 3, there is no "drawer" element - a drawer-like menu that
goes off screen. This is an add-on to the core Bootstrap framework that adds various
.drawer classes to quickly and easily create the drawer component.
This Readme is actually a quick start. Check out the full documentation for detailed usage and style guide.
- jQuery (already a Bootstrap dependency)
- Node & gulp if you want to build your own version.
Get it via Bower or NPM:
bower install bootstrap-drawer /
npm install bootstrap-drawer
or you can download the latest release from the release page.
For more detailed use on the bootstrap-drawer framework, check out the documentation.
When using the full Bootstrap Framework:
<!-- Off Canvas & other HTML here -->
You can check out example/index.html for a more robust example,
but the basic usage is very similar to using Bootstrap's col-SIZE-# classes, when it comes
to sizing the component. In addition, the inner elements (
-footer) are similar to how the
.panel class family works.
.fold class starts the drawer closed. Becomes
.fold.open when it's opened.
The sizing classes are dictated by the screen size to be responsive.
.dw-SIZE-12 will cover
the whole screen/canvas of that size. If you want to use the drawer in another container
instead of the
<body>, check out the full documentation.
<!-- add this class to your body for proper sizing -->MenuMenuThis is a properly padded container for content in thedrawer that isn't a navigation.A Regular LinkHomeProfileMessages© Caroline Amaba<!-- content as per usual -->
Using LESS / Building Your Own Drawer
You can find out how to incorporate bootstrap-drawer and builr your own in LESS section of the documentation.
transition.js file from the core Bootstrap
framework in order to work. Usage is nearly the same as the collapse component, but checkout out the documentation for more detailed usage for
$('.drawer').drawer(). The events emitted are
Check out the full changelog for past version changes.
- Optimize LESS to produce smaller css files.
Copyright (c) 2015, Caroline Amaba
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.