{
  "id": "range-slider",
  "name": "Range Slider",
  "category": "forms",
  "tags": [
    "range",
    "slider",
    "input",
    "gradient"
  ],
  "description": "A custom range slider with a gradient track and a ring-style thumb.",
  "url": "https://copy-css.com/snippets/range-slider",
  "markdown": "https://copy-css.com/snippets/range-slider.md",
  "html": "<input class=\"range\" type=\"range\" min=\"0\" max=\"100\" value=\"60\" aria-label=\"Volume\">",
  "css": ".range {\n  width: 220px;\n  height: 6px;\n  border-radius: 999px;\n  background: linear-gradient(90deg, #6366f1, #ec4899);\n  outline: none;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.range::-webkit-slider-thumb {\n  width: 22px;\n  height: 22px;\n  border: 4px solid #6366f1;\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n.range::-moz-range-thumb {\n  width: 14px;\n  height: 14px;\n  border: 4px solid #6366f1;\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n}\n\n/* Keyboard focus: a ring around the thumb (kept as two rules, browsers drop mixed selector lists) */\n.range:focus-visible::-webkit-slider-thumb {\n  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.35);\n}\n\n.range:focus-visible::-moz-range-thumb {\n  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.35);\n}",
  "features": [
    "linear gradients",
    "box shadows",
    "keyboard focus styles"
  ],
  "customProperties": []
}
