<div class="line">
  <div class="circle">
    <svg viewBox="0 0 50 40" xmlns="http://www.w3.org/2000/svg">
      <path d="M0,0 50,0 50,30 25,40 0,30z" fill="#ccc" stroke="#000" />
    </svg>
    <div class="value">0</div>
  </div>
  <input type="range" min="0" max="600" value="0" id="range">
</div>
* {
  margin: 0;
  padding: 0;
}

.line {
  width: 600px;
  height: 10px;
  background: #999;
  position: relative;
  margin: 50px auto;
}

.circle {
  width: 50px;
  position: absolute;
  top: 55%;
  transform: translate(-10%, -50%);
  cursor: pointer;
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.value {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #444;
  user-select: none;
  pointer-events: none;
}

input[type="range"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  opacity: 0;
  z-index: 100;
  height: 40px;
}
document.querySelector("#range").addEventListener("input", function () {
  document.querySelector(".circle").style.left = this.value + "px";
  document.querySelector(".value").innerHTML = this.value;
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.