cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

  rangeslider.js example
  by André Ruffert - @andreruffert

<h2>Programmatic attribute changes</h2>
<input type="range" value="50" min="10" max="100" step="5" data-rangeslider>
<label><input type="number" name="min" value="10"> <code>min</code></label>
<label><input type="number" name="max" value="100"> <code>max</code></label>
<label><input type="number" name="step" value="5"> <code>step</code></label>
<button id="js-example-change-attributes">Change attributes</button>
              body {
  color: #404040;
  padding: 50px;
  max-width: 500px;
  margin: 0 auto;

h2 {
  font-weight: 300;
  text-align: center;

output {
  display: block;
  text-align: center;

button {
  background: white;
  background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.1));
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #404040;
  display: block;
  width: 100%;
  padding: .5em;
  cursor: pointer;
  &:hover, &:focus {
    background: rgba(0, 0, 0, 0.1);
              $(function() {
  var $document = $(document);
  var $r = $('input[type=range]');
  var $min = $('input[name="min"]');
  var $max = $('input[name="max"]');
  var $step = $('input[name="step"]');
  var output = document.querySelectorAll('output')[0];
  // set initial output value
  output.textContent = $r[0].value;
  // update output value
  $document.on('input', 'input[type="range"]', function(e) {
    output.textContent = e.currentTarget.value;
  // Initialize
    polyfill: false
  // Example functionality to demonstrate programmatic attribute changes
  $document.on('click', '#js-example-change-attributes', function(e) {
    var attributes = {
    	min: $min[0].value,
      max: $max[0].value,
      step: $step[0].value
    $r.rangeslider('update', true);

Loading ..................