rangeSlider
Simple, small and fast vanilla JavaScript polyfill for the HTML5
<input type="range">
slider element. Forked from André Ruffert's jQuery plugin
Check out the examples.
- Touchscreen friendly
- Recalculates
onresize
- Small and fast
- Supports all major browsers
- Buffer progressbar (for downloading progress etc.)
Install
Install with npm:
npm install --save rangeslider-pure
Usage
// Initialize a new plugin instance for one element or NodeList of elements.const slider = document;rangeSlider; // update positionconst triggerEvents = true; // or falsesliderrangeSlider;
Internal APIs:
/** @see src/utils/dom.js */RangeSliderdom;/** @see src/utils/functions.js */RangeSliderfunctions;RangeSliderversion;
Use JSFiddle template for issues
Alternative template on StackBlitz
License
MIT