Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the jquery mmenu to open from the right? [closed]

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.

like image 778
pixelbeat Avatar asked Aug 02 '13 17:08

pixelbeat


1 Answers

Set the option "position" to "right" ("direction" isn't an option):

$("nav").mmenu({
    offCanvas {
        position: "right"
    }
});

The documentation for the plugin comes with the download pack, just open the docs/index.html file for examples, the options, the events and a tutorial. All of this is also accessible via the website (click the "check out these pages" links).

EDIT: Plugin is now properly documented: http://mmenu.frebsite.nl

like image 81
Fred Avatar answered Sep 18 '22 20:09

Fred