Animated mobile menu

In quite a few of my projects I’ve needed a quick and easy way of making a menu which scales onto mobile. I like the style that android apps have; the animated drawer, so I have replicated this.

The menu is swipe aware using Hammer.js which means if you swipe right on mobile then the navigational drawer will slide out and if you slide left, then it will disappear.

I created a Gist on GitHub to allow me to quickly and easily copy the code into my projects.