How to change the jquery mmenu to open from the right?

jquery, mmenu, user-experience

Solution

You can set the option `position`. Default it is `left` but if you set it to `right` your menu slides open from the right. Add `direction:'right'` so it opens to the left.

$menu.mmenu({
    dragOpen: true,
    position:'right',
    direction:'left',
    ...
});

And no, there doesn't really seem to be documentation about this plugin. I have just downloaded the source code and had a look how it all works. That's how I found out.

Hope it helps.

Problem

I'm trying to create a custom behaviour to mmenu to open from the right side of the website. There is any guide on how to change such thing? Here is what I got so far. http://codepen.io/davo/pen/krxLw Anyway, I'll keep working on this, if I find a proper way, I'll post it here.

Original source