Bolting Sliders, animated React component
A panel of settings sliders where clicking a track makes the knob leap there in an arc, leaving a fading dotted trail and reading out its value mid-air, then landing with a squash. Dragging and arrow keys work as usual.
- Pro
- Inputs & Controls
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Render settingsClick a track and watch the knob jump.
Exposure+0.4 EV
Bloom35%
Field of view72°
Samples64
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| settings | BoltSetting[] | DEFAULT_BOLT_SETTINGS | The sliders: each has id, label, min, max, unit (appended to the read-out) and a starting value. |
| title | string | "Render settings" | Small caps heading above the sliders. |
| hint | string | "Click a track and watch the knob jump." | Hint line under the sliders. |
| accent | string | "#0071e3" | Colour of the filled track, the trail dots and the focus ring. |
| autoplay | boolean | false | Throws one knob after another to random values every 1.1s until someone touches the panel. |