configuration (object)

A map of options for technical details.


Code example:

$("#my-menu").mmenu({
   configuration: {
      hardwareAcceleration : true,
      selectedClass        : "Selected",
      labelClass           : "Label",
      counterClass         : "Counter",
      pageNodetype         : "div",
      menuNodetype         : "nav",
      slideDuration        : 500
   }
});

configuration.hardwareAcceleration (boolean)

Whether or not to force hardware acceleration on the CSS transitions.

Default value: true.

configuration.selectedClass (string)

The classname on the currently selected LI.

Default value: "Selected".

configuration.labelClass (string)

The classname on the LIs that function as a label.

Default value: "Label".

configuration.counterClass (string)

The classname on the EMs that function as a counter.

Default value: "Counter".

configuration.pageNodetype (string)

The nodetype of the page.

Default value: "div".

configuration.menuNodetype (string)

The nodetype of the menu.

Default value: "nav".

configuration.slideDuration (number)

The duration of the animations (in milliseconds).

This value should match the duration of the CSS-transitions.

Default value: 500.