Number incrementer

Example


Installation

$ npm i -S storm-number-incrementer

Usage

HTML

CSS

Example CSS implementation

JS

Either import and initialise using a named import:

import NumberIncrementer from 'storm-number-incrementer';
            
NumberIncrementer.init('.js-tnumber-incrementer');

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

Load('/content/js/async/storm-number-incrementer.standalone.js').then(() => {
    StormNumberIncrementer.init('.js-number-incrementer');
});