🤩 If you like this project, please support us by starring our GitHub repository 🤩
It is possible to dynamically add CSS as a plain string using the addCSS API:
<tc-range-slider id="slider-1"></tc-range-slider>
<script src="toolcool-range-slider.min.js"></script>
<script>
const $slider1 = document.getElementById('slider-1');
$slider1.addCSS(`
.panel-fill{
background: green;
}
`);
</script>
📌 An example page with the source code can be found here.