Custom range - a ready to use presets. Here you can download the source or bundled code.
- Easy to use
- Resposive and adaptive
- Easy to customize
Download minified or not compressed bundle
Download and install with script
.
Minified:
<!-- if you need the single range -->
<link rel="stylesheet" href="./range.min.css" />
<!-- if you need the multi-range -->
<link rel="stylesheet" href="./multi-range.min.css" />
<script src="range.min.js"></script>
Not compressed:
<!-- if you need the single range -->
<link rel="stylesheet" href="./range.css" />
<!-- if you need the multi-range -->
<link rel="stylesheet" href="./multi-range.css" />
<script src="range.js"></script>
Currently not supported
import SingleRange from "./directory-name";
const range = new SingleRange(document.querySelector(".js-range"));
const range1 = new MultiRange(
document.querySelector(".js-multi-range-left"),
document.querySelector(".js-multi-range-right")
);
Initialization service
Used for update range controls position on resize
type
- Type:
string
- Description: Js event
name
- Type:
string
- Description: Custom event name
obj
- Type:
object
- Description: Element which call the event. Default: window
Initialization method of the single range
Used for the move input into wrapper
Used for get actual active bar size.
Native active bar is hidden by ShadowDOM
value
- Type:
number,string
- Description: Input current value
Initialization method of the multi-range
Used for the move input's into wrapper
Used for get actual left thumb position and active bar start.
Used for get actual right thumb position and active bar end.
Used for update range controls position on resize
type
- Type:
string
- Description: Js event
name
- Type:
string
- Description: Custom event name
obj
- Type:
object
- Description: Element which call the event. Default: window
Used for update range controls position on resize
type
- Type:
string
- Description: Js event
name
- Type:
string
- Description: Custom event name
obj
- Type:
object
- Description: Element which call the event. Default: window
© marcusblanco (Danil Duganov)