Skip to main content
100%

Smooth Slider

✓ Published0🌍 Public
Mmbostock
Last edited Jul 1, 2016
Created on Sep 9, 2013

A slider demonstrates smooth color interpolation between hues. Dragging the handle sets a target hue, and the background color transitions toward it with an exponential easing effect, creating a fluid visual response. The example uses D3.js v4 with a linear scale mapping degrees to pixel positions, a custom drag interaction via `d3.drag()`, and a timer-driven tween to animate the hue value. SVG elements include styled tracks, ticks, and a circular handle, while the background color updates via `d3.hsl()`.

AI-generated description

A variation of the drag slider using smooth interpolation.

gpl-3.0 Licensed

Similar vizzes