yannickoo / numscrubberjs

↔️ Let's change values of input numbers by dragging the mouse left & right

Home Page:https://mburakerman.github.io/numscrubberjs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Numscrubber.js

Let's change values of input numbers by dragging the mouse left & right

Install

NPM

Include numscrubber.js file

<script src="src/numscrubber.js"></script>

or use CDN

<script src="https://unpkg.com/numscrubberjs"></script>

Usage

Just add data-numscrubber to your input number

<input data-numscrubber type="number" value="6" min="4" max="50" />

and then call init()

<script>
    Numscrubber.init();
</script>

Thats it!

CodePen demo

CodePen demo

Browsers

Works well on all modern browsers.

Size

1.1 kb minified.

License

Licensed under the MIT License.

About

↔️ Let's change values of input numbers by dragging the mouse left & right

https://mburakerman.github.io/numscrubberjs/

License:MIT License


Languages

Language:JavaScript 100.0%