Banner


Installation

$ npm i -S storm-banner

Usage

HTML

Optional (see readme)

CSS

Only required if unconditionally rendering banners server-side, so the banner is hidden while the JS loads and is evaluated.

Sample minimum CSS required

JS

Either import and initialise using a named import:

import Banner from 'storm-banner';
            
Banner.init('.js-banner');

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

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