Spec
Read from the CSS this page runs on. Stepped, in tens: two sounds share one bar, split by a thin divider with a gap either side. Each part is that sound's share of the bar and carries the sound itself, its bars moving inside it, louder the bigger the share. Both shares read above the bar, always on screen, and add up to 100. Tap a sound's name to swap in another: rain, ocean, wind, forest or brown noise.
Bar and divider
| Bar | |
| Part corner | |
| Gap at the divider | |
| Divider | |
| Sound inside a part | |
| Steps | Eleven stops, 0 to 100 in tens; ticks under the bar, the middle one longer |
| Settle | 0.2s, ease out, to the nearest ten; each part is pinned to its own end and only changes width |
Type
| Names and shares | |
| Placement | Above the bar, 10px: the left sound's name then share at the left end, the right sound's share then name at the right end |
| Hover preview | Beside each share in mute: what it would become, “→ 60%” |
Colour
| Left sound | |
| Right sound | |
| Part fill | Its sound's colour at 22% over #2a3150 |
| Divider | |
States
| Hover | A soft ring round the divider; a dashed line marks the stop under the pointer and both shares preview what they would become. The mix stays |
| Pressed | The divider thickens to 3px, shortens 6px and glows; a tap moves it to the stop under the finger |
| Drag | The divider and both parts follow the finger exactly, with no easing, so the bar keeps its length; the shares read the nearest ten as you go, and on letting go the divider settles onto it in 0.2s |
| Keyboard | Left and Right ten; Home and End all one sound or all the other |