bootstrap
bootstrap copied to clipboard
Gesture support for off canvas
Use hammer.js, jQuery mobile swipe or some other lib to catch the swipe action. Show/hide the off canvas element based on the swipe similar to native behaviour.
Recommend including 3rth party library, but plugin should also work without.
I've enclosed canvas in another div (height:100%) and set its overflow to hidden when the menu is revealed. That's only a quick hack really, although it seems to work well :)
instead of only catching a swipe action, it could be cool if you could drag the actual menu to close. Mashable has it implemented in their mobile if you try it on an iphone.