∞ forever components

Inputs & Switches

Barycentric Tri-Mix Pad

Ternary mix pad: drag a puck inside a triangle to blend three sources, with tension struts and live percentages.

svgmedium complexitymoderate motionpointer+keyboardaccessible

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

Audio-mixer, colour-blend and three-way preference controls where three values must always add up to 100%.

When not to

Independent sliders that do not need to sum to a fixed total, or very small touch targets where a triangle is hard to hit.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Rename the three sources by editing the WARM, SYNC and DEEP labels and the aria-valuetext string in draw(), or change the triangle corners (A, B, C). Keep the role=slider #tmx-pad with its arrow-key handler, the #tmx-ctr reset button and the demo-v1 lifecycle. Set aria-disabled="true" on #tmx-pad or the disabled attribute on #tmx-ctr for the disabled look. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:forever:theme} postMessage switches at runtime.

Safe to edit

  • Forever Opus tokens on :root (--bg, --surface*, --text*, --border*, --accent) — one moss accent, no gradients
  • copy and data values in markup/script

Keep intact

  • demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions
  • theme hook: ?theme= bootstrap, forever:theme message listener and :root[data-theme="light"] tokens
  • IIFE wrapper, visibilitychange sleep, prefers-reduced-motion guard, time-based (dt) animation

Known limitations

  • State remains local to each mounted instance; format/theme remount preserves takeover, not component values.
  • Rests until used (owner rule, 2026-11-21): the idle demo runs only when a host sets window.__foreverPreview.demoEnabled to true, such as the preview Forever button. The first input still stops it for good.

ternarymixerbarycentricxy-padslider

More Inputs & Switches components

  • Liquid ToggleSVG liquid toggle with a goo filter, trailing droplets and a native button. First deliberate input stops the idle demo; the chosen on/off state settles fully.
  • Glow SliderCassis range slider on a native input: recessed track, a fill with a narrow emissive bloom, a domed knob and a rounded value tooltip, both with tight…
  • Spring StepperMint stepper with native minus/plus buttons and a number reel that settles with spring feedback. First deliberate input stops automatic steps; the chosen…
  • Segmented ControlRaised jade pill slides between four native segment buttons with elastic spring stretch. First input stops automatic cycling; committed selection remains.
  • Checkbox MorphThree native amber checkbox buttons animate their check strokes and expose pressed state. First input stops the demo; checked values remain.
  • Star RatingFive gold SVG star radio controls commit ratings on click or keyboard input and settle with a scale bounce. First input stops automatic sweeping.