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
StepsEleven stops, 0 to 100 in tens; ticks under the bar, the middle one longer
Settle0.2s, ease out, to the nearest ten; each part is pinned to its own end and only changes width

Type

Names and shares
PlacementAbove 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 previewBeside each share in mute: what it would become, “→ 60%”

Colour

Left sound
Right sound
Part fillIts sound's colour at 22% over #2a3150
Divider

States

HoverA 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
PressedThe divider thickens to 3px, shortens 6px and glows; a tap moves it to the stop under the finger
DragThe 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
KeyboardLeft and Right ten; Home and End all one sound or all the other