Lifetime updates on every purchase Support replies within 24 hours Secure checkout via Gumroad 8,500+ sales since 2016

Options

Updated 1 min read 3 views
OptionTypeDefaultDescription
animationstring | { in, out }'slide'Preset name or custom keyframes.
durationnumber | '0.45s' | '450ms'450Transition length.
easingstring'cubic-bezier(0.65, 0, 0.35, 1)'Any CSS easing.
backTextstring | (parent) => string'Back'Back button text. {parent} becomes the label of the level you return to (Menu for the root).
showTitlebooleanfalseShow the level title under the back button.
autoHeightbooleantrueAnimate the menu height between levels.
clipbooleantrueClip transitions to the menu box (overflow: hidden).
openActivebooleantrueOn init, open the level that contains the current page link.
activeSelectorstring'[aria-current="page"], .is-active, .current-menu-item > a'How the current page link is found.
keyboardbooleantrueKeyboard navigation.
reducedMotion'auto' | 'ignore''auto''auto' switches levels instantly for users who prefer reduced motion.
onInit, onChange, onComplete, onDestroyfunctionnullSee Events.

Options can also come from attributes: data-layer-menu='{"duration": 300}' or data-lm-animation="cube", data-lm-show-title="true".

Was this article helpful?