Get started with roundSlider CDN
MIT licensed
Circular UI component: roundSlider offers range input for user interaction.
Tags:- slider
- round slider
- jquery
Stable version
Copied!
How to start using roundSlider CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with roundSlider CDN - cdnhub.io</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/roundslider/1.6.1/css/roundslider.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<script src="https://cdn.cdnhub.io/roundSlider/1.6.1/roundslider.min.js"></script>
<style>
#slider {
width: 200px;
height: 20px;
margin: 0 auto;
}
</style>
</head>
<body>
<div id="slider"></div>
<script>
$(document).ready(function() {
$('#slider').roundSlider({
min: 0,
max: 100,
value: 50,
step: 1,
size: 10,
circle: true,
onChange: function(value, position) {
console.log('Slider value changed:', value);
}
});
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!