Hysteresis Nav

Example


Installation

$ npm i -S storm-hysteresis-nav

Usage

JS

Either import and initialise using a named import:

import HysteresisNav from 'storm-hysteresis-nav';
            
HysteresisMenu.init('.js-nav');

Or async using storm-load.js, add the .standalone file to your project, then initialise using the global name:

Load('/content/js/async/storm-hysteresis-nav.standalone.js')
.then(() => {
    HysteresisNav.init('.js-nav');
});