This is the magic behind the off canvas menu. The bulk of the menu is in the CSS. The JavaScript just ads a class to the ".page-outer" div to show the menu. You could also mimic this functionality using :focus in CSS I think.