Modal

Example


Installation

$ npm i -S storm-modal

Usage

HTML

CSS

Sample minimum CSS required

HTML

Import and initialise using a named import:

import Modal from 'storm-modal';
            
Modal.init('.js-modal');

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

Load('/content/js/async/storm-modal.standalone.js')
.then(() => {
    StormModal.init('.js-modal');
});