Web Development

jQuery Range Slider With Skin Support

Maan
Jul 30, 2013
2 min read
300 words

Ion.Range Slider is a nice, comfortable and easily customizable range slider with skins support. Also support events and public methods, has flexible settings, can be completely altered with CSS. It supports touch-devices which includes iPhone, iPad and etc. It has been tested on Google Chrome, Mozilla Firefox, Opera, Safari, IE(8.0+). It is freely distributed under MIT licence.

Using script

Import this libraries:
[list style=”1″ underline=”1″]

  • jQuery
  • ion.rangeSlider.min.js

[/list][margin_15b]

And CSS:
[list style=”1″ underline=”1″]

  • normalize.min.css – desirable if you have not yet connected one
  • ion.rangeSlider.css
  • ion.rangeSlider.skinName.css

[/list][margin_15b]Drop Down Menu: 20+ Helpful Tutorial To Create Menu With Javascript And CSS3

Don’t forget about skin image:
[list style=”1″ underline=”1″]

  • sprite-skin-simple.png – Simple skin
  • sprite-skin-nice.png – Nice skin
  • Or use included PSD file and draw your own skin (don’t forget to modify skin css after that)

[/list][margin_15b]

Create base input element:

[html]

[/html]Best JavaScript Libraries of 2014 One Must Have

Initialize slider:

[javascript]
$(“#someID”).ionRangeSlider();
[/javascript]

Or initialize slider with custom settings:

[javascript]
$(“#someID”).ionRangeSlider({
min: 10, // min value
max: 100, // max value
from: 30, // overwrite default FROM setting
to: 80, // overwrite default TO setting
type: “single”, // slider type
step: 10, // slider step
postfix: ” pounds”, // postfix text
hasGrid: true, // enable grid
hideText: true, // hide all text data
onChange: function(obj){ // function-callback, is called on every change
console.log(obj);
},
onFinish: function(obj){ // function-callback, is called once, after slider finished it’s work
console.log(obj);
}
})
[/javascript]Responsive jQuery Toggle Menu Plugin

You can also initialize slider with data-* attributes of input tag:
[text]
data-from=”30″ // overwrite default FROM setting
data-to=”70″ // overwrite default TO setting
data-type=”double” // slider type
data-step=”10″ // slider step
data-postfix=” pounds” // postfix text
data-hasgrid=”true” // enable grid
data-hidetext=”true” // hide all text data
[/text]

[button style=”3″ caption=”Demo” link=”http://ionden.com/a/plugins/ion.rangeSlider/”][/button] [button style=”4″ caption=”Download Now” link=”http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-1.6.3.zip”][/button]

Maan

Author

Maan is a Lead Frontend Engineer and Creative Director with 10+ years of industry experience blending UI/UX design with React-based development. A multifaceted practitioner, he has spent a decade turning abstract inspiration into deployed, scalable reality. Maan’s expertise lies in high-fidelity prototyping and component architecture, which he shares through insightful technical writing with the next generation of developers. His unique approach ensures that pixels not only meet passion but also rigorous performance standards.

View all posts

Continue reading

You might also like

Menu