##
Add CSS API

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.

Previous
Animation
Next
Touch & Keyboard Support